807203c
Add LDFLAGS variable to the lines that create the shared objects.
807203c
807203c
Extra link options are needed on some platforms, such as ppc64, where a
807203c
-m64 switch is needed.
807203c
Index: library/Makefile
807203c
===================================================================
807203c
--- library.orig/Makefile
807203c
+++ library/Makefile
807203c
@@ -33,11 +33,11 @@ rebuild: clean all
807203c
 
807203c
 $(LIB_NAME_FULL_SPAWNER) : $(OBJS_SPAWNER)
807203c
 	mkdir -p $(INSTALL_DIR)
807203c
-	$(CC) -g -shared -Wl,-soname,$(LIB_NAME_SPAWNER) -o $(LIB_NAME_FULL_SPAWNER) $(OBJS_SPAWNER) -lc
807203c
+	$(CC) -g -shared -Wl,-soname,$(LIB_NAME_SPAWNER) $(LDFLAGS) -o $(LIB_NAME_FULL_SPAWNER) $(OBJS_SPAWNER) -lc
807203c
 
807203c
 $(LIB_NAME_FULL_PTY): $(OBJS_PTY)
807203c
 	mkdir -p $(INSTALL_DIR)
807203c
-	$(CC) -g -shared -Wl,-soname,$(LIB_NAME_PTY) -o $(LIB_NAME_FULL_PTY) $(OBJS_PTY)
807203c
+	$(CC) -g -shared -Wl,-soname,$(LIB_NAME_PTY) $(LDFLAGS) -o $(LIB_NAME_FULL_PTY) $(OBJS_PTY)
807203c
 
807203c
 clean :
807203c
 	$(RM) $(OBJS_SPAWNER) $(LIB_NAME_FULL_SPAWNER)