+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
$(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)
$(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)