Add LDFLAGS to the link line for shared libraries, this fixes the build on OSX. (and should have been there anyway)

Originally committed to SVN as r4952.
This commit is contained in:
Amar Takhar 2010-12-11 01:32:24 +00:00
parent 52497737cd
commit 572e27f681

View file

@ -26,7 +26,7 @@ $(LIB) : $(OBJ)
ifdef LIB_SHARED ifdef LIB_SHARED
LIB_SHARED_FULL = $(LIB_SHARED).$(LIB_VERSION) LIB_SHARED_FULL = $(LIB_SHARED).$(LIB_VERSION)
$(LIB_SHARED) : $(OBJ) $(LIB_SHARED) : $(OBJ)
$(BIN_CXX) $(LIB_SHARED_LINK) $(OBJ) -o $(LIB_SHARED_FULL) $(BIN_CXX) $(LIB_SHARED_LINK) $(LDFLAGS) $(OBJ) -o $(LIB_SHARED_FULL)
$(BIN_LN) -s $(LIB_SHARED_FULL) $(LIB_SHARED) $(BIN_LN) -s $(LIB_SHARED_FULL) $(LIB_SHARED)
CLEANFILES+= $(LIB_SHARED_FULL) CLEANFILES+= $(LIB_SHARED_FULL)