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