73 lines
2.7 KiB
Plaintext
73 lines
2.7 KiB
Plaintext
--- configs/openbsd-g++-shared.orig Sat Oct 21 17:39:42 2000
|
|
+++ configs/openbsd-g++-shared Sat Oct 21 17:41:02 2000
|
|
@@ -1,35 +1,35 @@
|
|
# Compiling
|
|
-SYSCONF_CXX = g++
|
|
+SYSCONF_CXX = $(SYS_CXX)
|
|
|
|
# Compiling with support libraries
|
|
-SYSCONF_CXXFLAGS_X11 = -I/usr/X11R6/include
|
|
+SYSCONF_CXXFLAGS_X11 = -I/usr/X11R6/include -I/usr/local/include
|
|
SYSCONF_CXXFLAGS_QT = -I$(QTDIR)/include
|
|
-SYSCONF_CXXFLAGS_OPENGL = -I/usr/X11R6/include
|
|
+SYSCONF_CXXFLAGS_OPENGL = -I/usr/local/include
|
|
|
|
# Compiline YACC output
|
|
SYSCONF_CXXFLAGS_YACC = -Wno-unused -Wno-parentheses
|
|
|
|
# Linking with support libraries
|
|
# X11
|
|
-SYSCONF_LFLAGS_X11 = -L/usr/X11R6/lib
|
|
+SYSCONF_LFLAGS_X11 = -L/usr/X11R6/lib -L/usr/local/lib
|
|
SYSCONF_LIBS_X11 = -lX11 -lXext
|
|
# Qt, Qt+OpenGL
|
|
SYSCONF_LFLAGS_QT = -L$(QTDIR)/lib
|
|
SYSCONF_LIBS_QT = -lqt
|
|
SYSCONF_LIBS_QT_OPENGL = -lqgl
|
|
# OpenGL
|
|
-SYSCONF_LFLAGS_OPENGL = -L/usr/X11R6/lib
|
|
+SYSCONF_LFLAGS_OPENGL = -L/usr/local/lib
|
|
SYSCONF_LIBS_OPENGL = -lMesaGL -lMesaGLU -lXmu -lXext -lm
|
|
# Yacc
|
|
SYSCONF_LIBS_YACC =
|
|
|
|
# Linking applications
|
|
-SYSCONF_LINK = g++
|
|
+SYSCONF_LINK = $(SYS_CXX)
|
|
SYSCONF_LFLAGS =
|
|
SYSCONF_LIBS =
|
|
|
|
# Link flags shared objects
|
|
-SYSCONF_LFLAGS_SHOBJ = -Bshareable
|
|
+SYSCONF_LFLAGS_SHOBJ = -shared -fPIC
|
|
|
|
# Meta-object compiler
|
|
SYSCONF_MOC = $(QTDIR)/bin/moc
|
|
@@ -39,9 +39,9 @@
|
|
# - Place target in $(DESTDIR) - which has a trailing /
|
|
# - Usually needs to incorporate $(VER_MAJ) and $(VER_MIN)
|
|
#
|
|
-SYSCONF_LINK_SHLIB = ld
|
|
+SYSCONF_LINK_SHLIB = $(SYS_CXX) -shared -fPIC
|
|
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)
|
|
+SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) $(LFLAGS) -o $(DESTDIR)$(SYSCONF_LINK_TARGET_SHARED) $(OBJECTS) $(OBJMOC) $(LIBS)
|
|
|
|
# Linking static libraries
|
|
# - Build the $(TARGET) library, eg. lib$(TARGET).a
|
|
@@ -53,11 +53,11 @@
|
|
$(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS) $(OBJMOC) ; \
|
|
ranlib $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC)
|
|
# Compiling application source
|
|
-SYSCONF_CXXFLAGS = -O2 -fno-strength-reduce
|
|
+SYSCONF_CXXFLAGS = $(SYS_CXXFLAGS) -fno-strength-reduce
|
|
# Compiling library source
|
|
-SYSCONF_CXXFLAGS_LIB = -O2 -fno-strength-reduce -fPIC
|
|
+SYSCONF_CXXFLAGS_LIB = $(SYS_CXXFLAGS) -fno-strength-reduce -fPIC
|
|
# Compiling shared-object source
|
|
-SYSCONF_CXXFLAGS_SHOBJ = -O2 -fno-strength-reduce -fPIC
|
|
+SYSCONF_CXXFLAGS_SHOBJ = $(SYS_CXXFLAGS) -fno-strength-reduce -fPIC
|
|
# Default link type (stati linking is still be used where required)
|
|
SYSCONF_LINK_LIB = $(SYSCONF_LINK_LIB_SHARED)
|
|
SYSCONF_LINK_TARGET = $(SYSCONF_LINK_TARGET_SHARED)
|