summaryrefslogtreecommitdiff
blob: 6c1e68420505e4957e6140308a825a9d2776f1e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- features/org.eclipse.equinox.executable/library/gtk/make_linux.mak	2010-03-06 01:16:49.000000000 +1300
+++ features/org.eclipse.equinox.executable/library/gtk/make_linux.mak	2010-03-06 01:31:15.000000000 +1300
@@ -27,14 +27,14 @@
   PROGRAM_OUTPUT=eclipse
 endif
 
-PROGRAM_LIBRARY=$(PROGRAM_OUTPUT)_$(LIB_VERSION).so
+PROGRAM_SONAME=$(PROGRAM_OUTPUT)_$(LIB_VERSION)
+PROGRAM_LIBRARY=$(PROGRAM_SONAME).so
 
 ifeq ($(DEFAULT_JAVA),)
   DEFAULT_JAVA=DEFAULT_JAVA_JNI
 endif
 
 # Define the object modules to be compiled and flags.
-CC=gcc
 MAIN_OBJS = eclipseMain.o
 COMMON_OBJS = eclipseConfig.o eclipseCommon.o eclipseGtkCommon.o eclipseGtkInit.o
 DLL_OBJS	= eclipse.o eclipseGtk.o eclipseUtil.o eclipseJNI.o eclipseMozilla.o eclipseShm.o eclipseNix.o
@@ -44,8 +44,8 @@
 #LIBS = `pkg-config --libs-only-L gtk+-2.0` -lgtk-x11-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lgdk-x11-2.0 -lpthread -ldl
 LIBS = -lpthread -ldl
 GTK_LIBS = -DGTK_LIB="\"libgtk-x11-2.0.so.0\"" -DGDK_LIB="\"libgdk-x11-2.0.so.0\"" -DPIXBUF_LIB="\"libgdk_pixbuf-2.0.so.0\"" -DGOBJ_LIB="\"libgobject-2.0.so.0\""
-LFLAGS = -shared -fpic -Wl,--export-dynamic 
-CFLAGS = -g -s -Wall\
+LFLAGS = -shared -Wl,-soname=$(PROGRAM_SONAME) -fpic -Wl,--export-dynamic 
+CFLAGS += -Wall\
 	-fpic \
 	-DLINUX \
 	-DMOZILLA_FIX \
@@ -98,7 +98,7 @@
 	$(CC) -o $(EXEC) $(MAIN_OBJS) $(COMMON_OBJS) $(LIBS)
 	
 $(DLL): $(DLL_OBJS) $(COMMON_OBJS)
-	$(CC) $(LFLAGS) -o $(DLL) $(DLL_OBJS) $(COMMON_OBJS) $(LIBS)
+	$(CC) $(LDFLAGS) $(LFLAGS) -o $(DLL) $(DLL_OBJS) $(COMMON_OBJS) $(LIBS)
 
 install: all
 	cp $(EXEC) $(OUTPUT_DIR)