From 15c84adca94bfe4a89ece5c04f06a884cf508ebb Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 17 Jan 2011 21:55:49 +0100 Subject: fix packages to be compile with stack protector - libtool do not pass -fstack-protector while linking, but this is required to successfully link libraries or executables with SSP - pass LDFLAGS for non-libtool packages --- package/libelf/patches/patch-lib_Makefile_in | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/libelf/patches/patch-lib_Makefile_in (limited to 'package/libelf/patches/patch-lib_Makefile_in') diff --git a/package/libelf/patches/patch-lib_Makefile_in b/package/libelf/patches/patch-lib_Makefile_in new file mode 100644 index 000000000..7630c7f5c --- /dev/null +++ b/package/libelf/patches/patch-lib_Makefile_in @@ -0,0 +1,11 @@ +--- libelf-0.8.13.orig/lib/Makefile.in 2009-11-01 14:04:19.000000000 +0100 ++++ libelf-0.8.13/lib/Makefile.in 2011-01-15 21:55:08.000000000 +0100 +@@ -158,7 +158,7 @@ libelf.a: $(OBJS) $(LIBOBJS) + + $(SHLIB): libelf.a + @$(RM) $(SHLIB) +- $(LINK_SHLIB) -o $(SHLIB) $(OBJS:.o=.os) $(LIBOBJS:.o=.os) $(DEPSHLIBS) ++ $(LINK_SHLIB) $(LDFLAGS) -o $(SHLIB) $(OBJS:.o=.os) $(LIBOBJS:.o=.os) $(DEPSHLIBS) + if test "$(SONAME)" = "$(SHLIB)"; then true; else \ + $(RM) $(SONAME) && $(LN_S) $(SHLIB) $(SONAME); \ + fi -- cgit v1.2.3