diff options
Diffstat (limited to 'sys-libs/zlib/files/zlib-1.2.4-LDFLAGS.patch')
-rw-r--r-- | sys-libs/zlib/files/zlib-1.2.4-LDFLAGS.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/sys-libs/zlib/files/zlib-1.2.4-LDFLAGS.patch b/sys-libs/zlib/files/zlib-1.2.4-LDFLAGS.patch new file mode 100644 index 000000000000..8b128bee1fed --- /dev/null +++ b/sys-libs/zlib/files/zlib-1.2.4-LDFLAGS.patch @@ -0,0 +1,49 @@ +respect LDFLAGS ! + +--- zlib-1.2.4/Makefile.in ++++ zlib-1.2.4/Makefile.in +@@ -26,7 +26,6 @@ + + SFLAGS=-O + +-LDFLAGS=-L. libz.a + LDSHARED=$(CC) + CPP=$(CC) -E + +@@ -134,29 +133,29 @@ + -@mv objs/$*.o $@ + + $(SHAREDLIBV): $(PIC_OBJS) +- $(LDSHARED) $(SFLAGS) -o $@ $(PIC_OBJS) -lc ++ $(LDSHARED) $(SFLAGS) -o $@ $(PIC_OBJS) -lc $(LDFLAGS) + rm -f $(SHAREDLIB) $(SHAREDLIBM) + ln -s $@ $(SHAREDLIB) + ln -s $@ $(SHAREDLIBM) + -@rmdir objs + + example$(EXE): example.o $(STATICLIB) +- $(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS) ++ $(CC) $(CFLAGS) -o $@ -L. $^ $(LDFLAGS) + + minigzip$(EXE): minigzip.o $(STATICLIB) +- $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) ++ $(CC) $(CFLAGS) -o $@ -L. $^ $(LDFLAGS) + + examplesh$(EXE): example.o $(SHAREDLIBV) +- $(CC) $(CFLAGS) -o $@ example.o -L. $(SHAREDLIBV) ++ $(CC) $(CFLAGS) -o $@ -L. $^ $(LDFLAGS) + + minigzipsh$(EXE): minigzip.o $(SHAREDLIBV) +- $(CC) $(CFLAGS) -o $@ minigzip.o -L. $(SHAREDLIBV) ++ $(CC) $(CFLAGS) -o $@ -L. $^ $(LDFLAGS) + + example64$(EXE): example64.o $(STATICLIB) +- $(CC) $(CFLAGS) -o $@ example64.o $(LDFLAGS) ++ $(CC) $(CFLAGS) -o $@ -L. $^ $(LDFLAGS) + + minigzip64$(EXE): minigzip64.o $(STATICLIB) +- $(CC) $(CFLAGS) -o $@ minigzip64.o $(LDFLAGS) ++ $(CC) $(CFLAGS) -o $@ -L. $^ $(LDFLAGS) + + install-libs: $(LIBS) + -@if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir -p $(DESTDIR)$(exec_prefix); fi |