aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Makefile.elf-lib
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2005-12-10 22:33:25 -0500
committerTheodore Ts'o <tytso@mit.edu>2005-12-10 22:33:25 -0500
commit3985754378ae9922a874d880f478dcff360a6224 (patch)
tree21d348d67dbf0f55bd1b68c044189d9d74c0c0d5 /lib/Makefile.elf-lib
parent3ded50b37cfb3d3864792dfed7793029a061267e (diff)
downloade2fsprogs-3985754378ae9922a874d880f478dcff360a6224.tar.gz
e2fsprogs-3985754378ae9922a874d880f478dcff360a6224.tar.xz
e2fsprogs-3985754378ae9922a874d880f478dcff360a6224.zip
Use $(LDFLAGS) when generating shared libraries
Makefile.elf-lib, Makefile.solaris-lib: Add $(LDFLAGS) to the command line argument when generating the shared library, to allow cross-compile and other builds that might need to specify -L paths to needed libraries. Addresses Sourceforge Bug #1261549 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/Makefile.elf-lib')
-rw-r--r--lib/Makefile.elf-lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Makefile.elf-lib b/lib/Makefile.elf-lib
index b07f4c6f..97d9a70e 100644
--- a/lib/Makefile.elf-lib
+++ b/lib/Makefile.elf-lib
@@ -26,7 +26,7 @@ image: $(ELF_LIB)
$(ELF_LIB): $(OBJS)
@echo " GEN_ELF_SOLIB $(ELF_LIB)"
- @(cd elfshared; $(CC) --shared -o $(ELF_LIB) \
+ @(cd elfshared; $(CC) --shared -o $(ELF_LIB) $(LDFLAGS) \
-Wl,-soname,$(ELF_SONAME) $(OBJS) $(ELF_OTHER_LIBS))
@$(MV) elfshared/$(ELF_LIB) .
@$(RM) -f ../$(ELF_LIB) ../$(ELF_IMAGE).so ../$(ELF_SONAME)