$NetBSD: patch-ac,v 1.3 2000/08/16 01:52:16 wiz Exp $ --- configs/solaris-g++-static.orig Fri Sep 24 05:22:03 1999 +++ configs/solaris-g++-static Mon Mar 27 21:20:24 2000 @@ -1,10 +1,11 @@ # Compiling -SYSCONF_CXX = g++ +SYSCONF_CXX = ${LOCALBASE}/egcs/bin/g++ +SYSCONF_CXX_LIB = $(LIBTOOL) --mode=compile ${SYSCONF_CXX} SYSCONF_CC = gcc # Compiling with support libraries -SYSCONF_CXXFLAGS_X11 = -I/usr/openwin/include +SYSCONF_CXXFLAGS_X11 = -I${X11BASE}/include SYSCONF_CXXFLAGS_QT = -I$(QTDIR)/include -SYSCONF_CXXFLAGS_OPENGL = +SYSCONF_CXXFLAGS_OPENGL = -I${X11BASE}/include # Compiline YACC output @@ -13,5 +14,5 @@ # Linking with support libraries # X11 -SYSCONF_LFLAGS_X11 = -L/usr/openwin/lib +SYSCONF_LFLAGS_X11 = -L${X11BASE}/lib SYSCONF_LIBS_X11 = -lXext -lX11 -lm # Qt, Qt+OpenGL @@ -20,11 +21,11 @@ SYSCONF_LIBS_QT_OPENGL = -lqgl # OpenGL -SYSCONF_LFLAGS_OPENGL = -SYSCONF_LIBS_OPENGL = -lGL -lGLU -lXmu +SYSCONF_LFLAGS_OPENGL = -L${X11BASE}/lib +SYSCONF_LIBS_OPENGL = -lMesaGL -lMesaGLU -lXmu -lXext -lm # Yacc SYSCONF_LIBS_YACC = # Linking applications -SYSCONF_LINK = g++ +SYSCONF_LINK = ${LOCALBASE}/egcs/bin/g++ SYSCONF_LFLAGS = SYSCONF_LIBS = @@ -41,5 +42,5 @@ # - Usually needs to incorporate $(VER_MAJ), $(VER_MIN) and $(VER_PATCH) # -SYSCONF_LINK_SHLIB = g++ +SYSCONF_LINK_SHLIB = ${LOCALBASE}/egcs/bin/g++ SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.$(VER_MAJ).$(VER_MIN).$(VER_PATCH) SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) -shared -h $(TARGET1) \ @@ -57,8 +58,8 @@ # - Place target in $(DESTDIR) - which has a trailing / # -SYSCONF_AR = ar cq -SYSCONF_LINK_TARGET_STATIC = lib$(TARGET).a +SYSCONF_AR = $(LIBTOOL) --mode=link $(SYSCONF_CXX) -rpath $(PREFIX)/lib -version-info $(VER_MAJ):$(VER_MIN) -o +SYSCONF_LINK_TARGET_STATIC = lib$(TARGET).la SYSCONF_LINK_LIB_STATIC = rm -f $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) ; \ - $(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS) $(OBJMOC) + $(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS:.o=.lo) $(OBJMOC:.o=.lo) # Compiling application source SYSCONF_CXXFLAGS = -O2