diff options
Diffstat (limited to 'dev-libs/libaio/files')
-rw-r--r-- | dev-libs/libaio/files/libaio-0.3.113-respect-LDFLAGS.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-libs/libaio/files/libaio-0.3.113-respect-LDFLAGS.patch b/dev-libs/libaio/files/libaio-0.3.113-respect-LDFLAGS.patch new file mode 100644 index 000000000000..f9ac2037ff91 --- /dev/null +++ b/dev-libs/libaio/files/libaio-0.3.113-respect-LDFLAGS.patch @@ -0,0 +1,12 @@ +We need to place LDFLAGS earlier to ensure e.g. as-needed works correctly. +--- a/src/Makefile ++++ b/src/Makefile +@@ -56,7 +56,7 @@ libaio.a: $(libaio_objs) + + $(libname): $(libaio_sobjs) libaio.map + $(CC) $(CFLAGS) -c struct_offsets.c +- $(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS) ++ $(CC) $(SO_CFLAGS) $(LINK_FLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) + + install: $(all_targets) + install -D -m 644 libaio.h $(includedir)/libaio.h |