Whamcloud - gitweb
Use $(LDFLAGS) when generating shared libraries
authorTheodore Ts'o <tytso@mit.edu>
Sun, 11 Dec 2005 03:33:25 +0000 (22:33 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 11 Dec 2005 03:33:25 +0000 (22:33 -0500)
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>
lib/ChangeLog
lib/Makefile.elf-lib
lib/Makefile.solaris-lib

index 6178633..3e62728 100644 (file)
@@ -1,3 +1,11 @@
+2005-12-10  Theodore Ts'o  <tytso@mit.edu>
+
+       * 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)
+
 2006-06-30  Theodore Ts'o  <tytso@mit.edu>
 
        * Release of E2fsprogs 1.38
index b07f4c6..97d9a70 100644 (file)
@@ -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)
index df4f8ad..b75c20e 100644 (file)
@@ -25,8 +25,8 @@ image:                $(ELF_LIB)
 
 $(ELF_LIB): $(OBJS)
        @echo " GEN_ELF_SOLIB $(ELF_LIB)"
-       @(cd elfshared; $(CC) --shared -o $(ELF_LIB) -Wl,-h,$(ELF_SONAME) \
-               $(OBJS) $(ELF_OTHER_LIBS))
+       @(cd elfshared; $(CC) --shared -o $(ELF_LIB) $(LDFLAGS) \
+               -Wl,-h,$(ELF_SONAME) $(OBJS) $(ELF_OTHER_LIBS))
        @$(MV) elfshared/$(ELF_LIB) .
        @$(RM) -f ../$(ELF_LIB) ../$(ELF_IMAGE).so ../$(ELF_SONAME)
        @$(LN) $(ELF_LIB) ../$(ELF_LIB)