Whamcloud - gitweb
Include LDFLAGS when building BSD libraries
authorTheodore Ts'o <tytso@mit.edu>
Sat, 12 May 2012 02:21:08 +0000 (22:21 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 12 May 2012 02:21:08 +0000 (22:21 -0400)
Addresses-Sourceforge-Bug: #3517272

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/Makefile.bsd-lib

index 51e9dc7..0ca09f8 100644 (file)
@@ -22,7 +22,7 @@ BSDLIB_PIC_FLAG = -fpic
 image:         $(BSD_LIB)
 
 $(BSD_LIB): $(OBJS)
-       (cd pic; ld -Bshareable -o $(BSD_LIB) $(OBJS))
+       (cd pic; ld -Bshareable -o $(BSD_LIB) $(LDFLAGS) $(OBJS))
        $(MV) pic/$(BSD_LIB) .
        $(RM) -f ../$(BSD_LIB)
        (cd ..; $(LN) $(LINK_BUILD_FLAGS) \