2000-02-21 06:45:29 +00:00
|
|
|
--- configs/freebsd-g++-shared Fri Feb 26 12:01:59 1999
|
|
|
|
+++ configs/freebsd-g++-shared.new Sun Jan 2 17:11:37 2000
|
|
|
|
@@ -25,7 +25,7 @@
|
1999-02-25 08:25:17 +00:00
|
|
|
|
|
|
|
# Linking applications
|
2000-02-21 06:45:29 +00:00
|
|
|
SYSCONF_LINK = g++
|
|
|
|
-SYSCONF_LFLAGS =
|
|
|
|
+SYSCONF_LFLAGS = %%CXXFLAGS%%
|
1999-02-25 08:25:17 +00:00
|
|
|
SYSCONF_LIBS =
|
|
|
|
|
2000-02-21 06:45:29 +00:00
|
|
|
# Link flags shared objects
|
|
|
|
@@ -40,15 +40,13 @@
|
1998-09-27 17:46:51 +00:00
|
|
|
# - Usually needs to incorporate $(VER_MAJ) and $(VER_MIN)
|
1998-07-20 16:51:18 +00:00
|
|
|
#
|
2000-02-21 06:45:29 +00:00
|
|
|
SYSCONF_LINK_SHLIB = g++
|
|
|
|
-SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.$(VER_MAJ).$(VER_MIN)
|
|
|
|
-SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) -shared \
|
|
|
|
+SYSCONF_LINK_TARGET_SHARED = lib$(TARGET).so.3
|
|
|
|
+SYSCONF_LINK_LIB_SHARED = $(SYSCONF_LINK_SHLIB) -shared %%CXXFLAGS%% \
|
1999-01-07 10:58:33 +00:00
|
|
|
$(LFLAGS) -o $(SYSCONF_LINK_TARGET_SHARED) \
|
|
|
|
$(OBJECTS) $(OBJMOC) $(LIBS); \
|
|
|
|
mv $(SYSCONF_LINK_TARGET_SHARED) $(DESTDIR); \
|
|
|
|
cd $(DESTDIR); \
|
|
|
|
- rm -f lib$(TARGET).so lib$(TARGET).so.$(VER_MAJ); \
|
|
|
|
- ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so; \
|
|
|
|
- ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so.$(VER_MAJ)
|
|
|
|
+ ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so
|
1998-07-20 16:51:18 +00:00
|
|
|
|
|
|
|
# Linking static libraries
|
|
|
|
# - Build the $(TARGET) library, eg. lib$(TARGET).a
|
2000-02-21 06:45:29 +00:00
|
|
|
@@ -59,11 +57,11 @@
|
1999-02-25 08:25:17 +00:00
|
|
|
SYSCONF_LINK_LIB_STATIC = rm -f $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) ; \
|
2000-02-21 06:45:29 +00:00
|
|
|
$(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS) $(OBJMOC)
|
1998-07-20 16:51:18 +00:00
|
|
|
# Compiling application source
|
2000-02-21 06:45:29 +00:00
|
|
|
-SYSCONF_CXXFLAGS = -pipe -O2 -fno-strength-reduce
|
|
|
|
+SYSCONF_CXXFLAGS = %%CXXFLAGS%% -fno-strength-reduce
|
1998-07-20 16:51:18 +00:00
|
|
|
# Compiling library source
|
2000-02-21 06:45:29 +00:00
|
|
|
-SYSCONF_CXXFLAGS_LIB = -O2 -fno-strength-reduce -fPIC
|
|
|
|
+SYSCONF_CXXFLAGS_LIB = %%CXXFLAGS%% -fno-strength-reduce -fPIC
|
1998-07-20 16:51:18 +00:00
|
|
|
# Compiling shared-object source
|
2000-02-21 06:45:29 +00:00
|
|
|
-SYSCONF_CXXFLAGS_SHOBJ = -O2 -fno-strength-reduce -fPIC
|
|
|
|
+SYSCONF_CXXFLAGS_SHOBJ = %%CXXFLAGS%% -fno-strength-reduce -fPIC
|
1998-07-20 16:51:18 +00:00
|
|
|
# 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)
|