2000-03-06 18:24:03 +00:00
|
|
|
--- configs/freebsd-g++-shared.orig Thu Feb 17 01:55:56 2000
|
|
|
|
+++ configs/freebsd-g++-shared Sat Feb 26 20:25:51 2000
|
|
|
|
@@ -16,7 +16,7 @@
|
1999-08-30 07:13:00 +00:00
|
|
|
SYSCONF_LIBS_X11 = -lXext -lX11 -lm
|
1999-02-25 08:25:17 +00:00
|
|
|
# Qt, Qt+OpenGL
|
|
|
|
SYSCONF_LFLAGS_QT = -L$(QTDIR)/lib
|
1999-08-30 07:13:00 +00:00
|
|
|
-SYSCONF_LIBS_QT = -lqt
|
|
|
|
+SYSCONF_LIBS_QT = -lqt2
|
1999-02-25 08:25:17 +00:00
|
|
|
SYSCONF_LIBS_QT_OPENGL = -lqgl
|
|
|
|
# OpenGL
|
2000-03-06 18:24:03 +00:00
|
|
|
SYSCONF_LFLAGS_OPENGL = -L/usr/X11R6/lib
|
|
|
|
@@ -27,7 +27,7 @@
|
1999-02-25 08:25:17 +00:00
|
|
|
# Linking applications
|
2000-03-06 18:24:03 +00:00
|
|
|
SYSCONF_LINK = g++
|
1999-02-25 08:25:17 +00:00
|
|
|
SYSCONF_LFLAGS =
|
1999-08-30 07:13:00 +00:00
|
|
|
-SYSCONF_LIBS =
|
|
|
|
+SYSCONF_LIBS = -lxpg4
|
1999-02-25 08:25:17 +00:00
|
|
|
|
1999-08-30 07:13:00 +00:00
|
|
|
# Link flags shared objects
|
|
|
|
SYSCONF_LFLAGS_SHOBJ = -shared
|
2000-03-06 18:24:03 +00:00
|
|
|
@@ -41,16 +41,26 @@
|
1999-08-30 07:13:00 +00:00
|
|
|
# - Usually needs to incorporate $(VER_MAJ), $(VER_MIN) and $(VER_PATCH)
|
1998-07-20 16:51:18 +00:00
|
|
|
#
|
2000-03-06 18:24:03 +00:00
|
|
|
SYSCONF_LINK_SHLIB = g++
|
1999-08-30 07:13:00 +00:00
|
|
|
-SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.$(VER_MAJ).$(VER_MIN).$(VER_PATCH)
|
1998-09-27 17:46:51 +00:00
|
|
|
+ifeq ($(PORTOBJFORMAT),elf)
|
1999-01-07 10:58:33 +00:00
|
|
|
+SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.$(VER_MAJ)
|
|
|
|
SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) -shared \
|
|
|
|
$(LFLAGS) -o $(SYSCONF_LINK_TARGET_SHARED) \
|
1999-08-30 07:13:00 +00:00
|
|
|
+ -Wl,-soname,$(SYSCONF_LINK_TARGET_SHARED) \
|
|
|
|
$(OBJECTS) $(OBJMOC) $(LIBS) && \
|
1999-01-07 10:58:33 +00:00
|
|
|
mv $(SYSCONF_LINK_TARGET_SHARED) $(DESTDIR); \
|
1999-08-30 07:13:00 +00:00
|
|
|
cd $(DESTDIR) && \
|
|
|
|
- rm -f lib$(TARGET).so lib$(TARGET).so.$(VER_MAJ) lib$(TARGET).so.$(VER_MAJ).$(VER_MIN); \
|
1999-01-07 10:58:33 +00:00
|
|
|
- ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so; \
|
1999-08-30 07:13:00 +00:00
|
|
|
- ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so.$(VER_MAJ); \
|
|
|
|
- ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so.$(VER_MAJ).$(VER_MIN)
|
|
|
|
+ rm -f lib$(TARGET).so; \
|
|
|
|
+ ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so
|
|
|
|
+else
|
|
|
|
+SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.$(VER_MAJ).$(VER_MIN)$(VER_PATCH)
|
|
|
|
+SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) -shared \
|
|
|
|
+ $(LFLAGS) -o $(SYSCONF_LINK_TARGET_SHARED) \
|
|
|
|
+ $(OBJECTS) $(OBJMOC) $(LIBS) && \
|
|
|
|
+ mv $(SYSCONF_LINK_TARGET_SHARED) $(DESTDIR); \
|
|
|
|
+ cd $(DESTDIR) && \
|
1999-01-07 10:58:33 +00:00
|
|
|
+ rm -f lib$(TARGET).so; \
|
|
|
|
+ ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so
|
1998-09-27 17:46:51 +00:00
|
|
|
+endif
|
1998-07-20 16:51:18 +00:00
|
|
|
|
|
|
|
# Linking static libraries
|
|
|
|
# - Build the $(TARGET) library, eg. lib$(TARGET).a
|