You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.4 KiB
45 lines
1.4 KiB
Obey LDFLAGS for tests
|
|
|
|
Upstream-Status: Submitted [https://github.com/madler/zlib/pull/409]
|
|
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
|
|
|
--- a/Makefile.in
|
|
+++ b/Makefile.in
|
|
@@ -26,7 +26,7 @@
|
|
|
|
SFLAGS=-O
|
|
LDFLAGS=
|
|
-TEST_LDFLAGS=-L. libz.a
|
|
+TEST_LDFLAGS=-L. $(LDFLAGS)
|
|
LDSHARED=$(CC)
|
|
CPP=$(CC) -E
|
|
|
|
@@ -286,22 +286,22 @@
|
|
-@rmdir objs
|
|
|
|
example$(EXE): example.o $(STATICLIB)
|
|
- $(CC) $(CFLAGS) -o $@ example.o $(TEST_LDFLAGS)
|
|
+ $(CC) $(CFLAGS) -o $@ example.o $(TEST_LDFLAGS) $(STATICLIB)
|
|
|
|
minigzip$(EXE): minigzip.o $(STATICLIB)
|
|
- $(CC) $(CFLAGS) -o $@ minigzip.o $(TEST_LDFLAGS)
|
|
+ $(CC) $(CFLAGS) -o $@ minigzip.o $(TEST_LDFLAGS) $(STATICLIB)
|
|
|
|
examplesh$(EXE): example.o $(SHAREDLIBV)
|
|
- $(CC) $(CFLAGS) -o $@ example.o -L. $(SHAREDLIBV)
|
|
+ $(CC) $(CFLAGS) -o $@ example.o $(TEST_LDFLAGS) $(SHAREDLIBV)
|
|
|
|
minigzipsh$(EXE): minigzip.o $(SHAREDLIBV)
|
|
- $(CC) $(CFLAGS) -o $@ minigzip.o -L. $(SHAREDLIBV)
|
|
+ $(CC) $(CFLAGS) -o $@ minigzip.o $(TEST_LDFLAGS) $(SHAREDLIBV)
|
|
|
|
example64$(EXE): example64.o $(STATICLIB)
|
|
- $(CC) $(CFLAGS) -o $@ example64.o $(TEST_LDFLAGS)
|
|
+ $(CC) $(CFLAGS) -o $@ example64.o $(TEST_LDFLAGS) $(STATICLIB)
|
|
|
|
minigzip64$(EXE): minigzip64.o $(STATICLIB)
|
|
- $(CC) $(CFLAGS) -o $@ minigzip64.o $(TEST_LDFLAGS)
|
|
+ $(CC) $(CFLAGS) -o $@ minigzip64.o $(TEST_LDFLAGS) $(STATICLIB)
|
|
|
|
install-libs: $(LIBS)
|
|
-@if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir -p $(DESTDIR)$(exec_prefix); fi
|
|
|