blob: 5b169990962971834f4ad2289c909b2febb36d03 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
--- configs/netbsd-g++-static.orig Fri Feb 26 17:02:07 1999
+++ configs/netbsd-g++-static Thu Jun 15 12:37:34 2000
@@ -1,5 +1,6 @@
# Compiling
SYSCONF_CXX = g++
+SYSCONF_CXX_LIB = $(LIBTOOL) --mode=compile g++
# Compiling with support libraries
SYSCONF_CXXFLAGS_X11 = -I/usr/X11R6/include
@@ -14,8 +15,8 @@
SYSCONF_LFLAGS_X11 = -L/usr/X11R6/lib
SYSCONF_LIBS_X11 = -lX11 -lXext
# Qt, Qt+OpenGL
-SYSCONF_LFLAGS_QT = -L$(QTDIR)/lib
-SYSCONF_LIBS_QT = -lqt
+SYSCONF_LFLAGS_QT =
+SYSCONF_LIBS_QT = $(QTDIR)/src/libqt.la
SYSCONF_LIBS_QT_OPENGL = -lqgl
# OpenGL
SYSCONF_LFLAGS_OPENGL = -L/usr/X11R6/lib
@@ -24,38 +25,24 @@
SYSCONF_LIBS_YACC =
# Linking applications
-SYSCONF_LINK = g++
+SYSCONF_LINK = $(LIBTOOL) --mode=link g++
SYSCONF_LFLAGS =
SYSCONF_LIBS =
-# Link flags shared objects
-SYSCONF_LFLAGS_SHOBJ = -Bshareable
-
# Meta-object compiler
SYSCONF_MOC = $(QTDIR)/bin/moc
-# Linking shared libraries
-# - Build the $(TARGET) library, eg. lib$(TARGET).so.0.0
-# - Place target in $(DESTDIR) - which has a trailing /
-# - Usually needs to incorporate $(VER_MAJ) and $(VER_MIN)
-#
-SYSCONF_LINK_SHLIB = ld
-SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.$(VER_MAJ).$(VER_MIN)
-SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) -Bshareable $(LFLAGS) -o $(DESTDIR)$(SYSCONF_LINK_TARGET_SHARED) `lorder /usr/lib/c++rt0.o $(OBJECTS) $(OBJMOC) | tsort` $(LIBS)
-
-# Linking static libraries
+# Linking libtool libraries
# - Build the $(TARGET) library, eg. lib$(TARGET).a
# - Place target in $(DESTDIR) - which has a trailing /
#
-SYSCONF_AR = ar cqs
-SYSCONF_LINK_TARGET_STATIC = lib$(TARGET).a
-SYSCONF_LINK_LIB_STATIC = rm -f $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) ; \
- $(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS) $(OBJMOC)
+SYSCONF_LINK_TARGET = lib$(TARGET).la
+SYSCONF_LINK_LIB = rm -f $(SYSCONF_LINK_TARGET) ; \
+ $(LIBTOOL) --mode=link g++ -rpath $(QTPREFIX)/lib -version-info $(VER_MAJ):$(VER_MIN) \
+ -o $(SYSCONF_LINK_TARGET) $(OBJECTS:.o=.lo) $(OBJMOC:.o=.lo)
# Compiling application source
SYSCONF_CXXFLAGS = -O2 -fno-strength-reduce
# Compiling library source
-SYSCONF_CXXFLAGS_LIB = -O2 -fno-strength-reduce -fPIC
+SYSCONF_CXXFLAGS_LIB =
# Compiling shared-object source
-SYSCONF_CXXFLAGS_SHOBJ = -O2 -fno-strength-reduce -fPIC
-SYSCONF_LINK_LIB = $(SYSCONF_LINK_LIB_STATIC)
-SYSCONF_LINK_TARGET = $(SYSCONF_LINK_TARGET_STATIC)
+SYSCONF_CXXFLAGS_SHOBJ = -O2 -fno-strength-reduce
|