mirror of
https://gitee.com/openharmony/third_party_qrcodegen
synced 2024-11-27 09:20:50 +00:00
Honor LDFLAGS when building executables.
This commit is contained in:
parent
fd6917601d
commit
5217af7cf6
@ -65,11 +65,11 @@ clean:
|
|||||||
|
|
||||||
# Executable files
|
# Executable files
|
||||||
%: %.o $(LIBFILE)
|
%: %.o $(LIBFILE)
|
||||||
$(CC) $(CFLAGS) -o $@ $< -L . -l $(LIB)
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -L . -l $(LIB)
|
||||||
|
|
||||||
# Special executable
|
# Special executable
|
||||||
qrcodegen-test: qrcodegen-test.c $(LIBOBJ:%.o=%.c)
|
qrcodegen-test: qrcodegen-test.c $(LIBOBJ:%.o=%.c)
|
||||||
$(CC) $(CFLAGS) -DQRCODEGEN_TEST -o $@ $^
|
$(CC) $(CFLAGS) $(LDFLAGS) -DQRCODEGEN_TEST -o $@ $^
|
||||||
|
|
||||||
# The library
|
# The library
|
||||||
$(LIBFILE): $(LIBOBJ)
|
$(LIBFILE): $(LIBOBJ)
|
||||||
|
@ -65,7 +65,7 @@ clean:
|
|||||||
|
|
||||||
# Executable files
|
# Executable files
|
||||||
%: %.o $(LIBFILE)
|
%: %.o $(LIBFILE)
|
||||||
$(CXX) $(CXXFLAGS) -o $@ $< -L . -l $(LIB)
|
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $< -L . -l $(LIB)
|
||||||
|
|
||||||
# The library
|
# The library
|
||||||
$(LIBFILE): $(LIBOBJ)
|
$(LIBFILE): $(LIBOBJ)
|
||||||
|
Loading…
Reference in New Issue
Block a user