f1a88e4042
and the CFLAGS are hardcoded in solenv/inc/unxfbsd.mk
134 lines
5.1 KiB
Groff
134 lines
5.1 KiB
Groff
--- ../config_office/set_soenv.1.orig Tue Nov 20 18:26:33 2001
|
|
+++ ../config_office/set_soenv.1 Sun Mar 10 22:56:18 2002
|
|
@@ -40,7 +40,7 @@
|
|
#
|
|
# Set this value equal to the corresponding amount of
|
|
# command line arguments.
|
|
-my $numArgs = 17;
|
|
+my $numArgs = 20;
|
|
# Determining the amount of arguments in the call.
|
|
my $numEnter = $#ARGV + 1;
|
|
if ( $numEnter != $numArgs )
|
|
@@ -72,8 +72,9 @@
|
|
#
|
|
# Platform dependent constant values.
|
|
my ( $BIG_SVX, $COM, $CPU, $CPUNAME, $CVER, $DLLSUFFIX, $GLIBC, $GUI, $GUIBASE, $GUIENV,
|
|
- $GVER, $GVERDIR, $OS, $OUTPATH, $INPATH, $PATH_SEPERATOR, $PROSWITCH, $XPVERSION, $BOTH,
|
|
- $DEMO_ENV, $DYNAMIC_CRT, $SET_EXCEPTIONS, $emergency, $use_shl_versions, $CDPATHx );
|
|
+ $GVER, $GVERDIR, $OSVERSION, $OS, $OUTPATH, $INPATH, $PATH_SEPERATOR, $PROSWITCH, $XPVERSION, $BOTH,
|
|
+ $DEMO_ENV, $DYNAMIC_CRT, $SET_EXCEPTIONS, $emergency, $use_shl_versions, $CDPATHx, $PTHREAD_CFLAGS,
|
|
+ $PTHREAD_LIBS );
|
|
#
|
|
#-------------------------------------------
|
|
# IIc. Declaring the environment variables.
|
|
@@ -301,7 +302,7 @@
|
|
$PROSWITCH = "-DPRODUCT";
|
|
$XPVERSION = "3";
|
|
$SOLAR_JAVA = "TRUE";
|
|
- $XPVERSION = "3";
|
|
+ $XPVERSION = "3";
|
|
}
|
|
elsif ( $platform eq "$FreeBSD" )
|
|
{ print "Setting FreeBSD specific values... ";
|
|
@@ -324,6 +325,9 @@
|
|
$PATH_SEPERATOR = $ps;
|
|
$PROSWITCH = "-DPRODUCT";
|
|
$XPVERSION = "3";
|
|
+ $OSVERSION = $ARGV[ 17 ];
|
|
+ $PTHREAD_CFLAGS = $ARGV[ 18 ];
|
|
+ $PTHREAD_LIBS = $ARGV[ 19 ];
|
|
}
|
|
elsif ( $platform eq "$Linux" )
|
|
{
|
|
@@ -853,15 +857,16 @@
|
|
$D.$COM.
|
|
$D.$CVER.
|
|
$D.$GVER.
|
|
- $D."_PTHREADS".
|
|
$D.$OS.
|
|
$D.$CPUNAME;
|
|
if ($platform eq "$FreeBSD")
|
|
-{ $SOLARDEF .= $D."X86";
|
|
+{ $SOLARDEF .= $D."X86".
|
|
+ $D."OSVERSION=$OSVERSION".
|
|
+ " ".$PTHREAD_CFLAGS;
|
|
}
|
|
$SOLARDEF .= $D."_REENTRANT".
|
|
$D."_POSIX_PTHREAD_SEMANTICS";
|
|
-if (($platform ne "$Tru64") && ( $platform ne "$Irix") && ( $platform ne "$Irix64"))
|
|
+if (($platform ne "$Tru64") && ( $platform ne "$Irix") && ( $platform ne "$Irix64") && ( $platform ne "FreeBSD" ) && ( $platform ne "NetBSD" ))
|
|
{ $SOLARDEF .= $D."GLIBC=".$GLIBC;
|
|
}
|
|
$SOLARDEF .= $D."SUPD=$UPD".
|
|
@@ -954,7 +959,7 @@
|
|
$ps.$USR.$LIB.
|
|
$ps.$USR_LOCAL.$BIN;
|
|
}
|
|
-elsif (($platform eq "$Linux") or ($platform eq "$FreeBSD") or ($platform eq "$NetBSD") or ($platform eq "$Tru64") or ($platform eq "$Irix") or ($platform eq "$Irix64"))
|
|
+elsif (($platform eq "$Linux") or ($platform eq "$NetBSD") or ($platform eq "$Tru64") or ($platform eq "$Irix") or ($platform eq "$Irix64"))
|
|
{ $PATH = $cur_dir.
|
|
$ps.'$SOLARVER'.$ds.'$UPD'.$ds.'$INPATH'.$BIN.
|
|
$ps.'$SOLARENV'.$ds.'$OUTPATH'.$BIN.
|
|
@@ -968,6 +973,22 @@
|
|
$ps.$USR.$BIN.$ds."X11".
|
|
$ps.$USR.$LIB;
|
|
}
|
|
+elsif ($platform eq "$FreeBSD")
|
|
+{ $PATH = $cur_dir.
|
|
+ $ps.'$SOLARVER'.$ds.'$UPD'.$ds.'$INPATH'.$BIN.
|
|
+ $ps.'$SOLARENV'.$ds.'$OUTPATH'.$BIN.
|
|
+ $ps.'$SOLARENV'.$BIN.
|
|
+ $ps.'$JAVA_HOME'.$BIN.
|
|
+ $ps.$USR_LOCAL.$BIN.
|
|
+ $ps.$USR_LOCAL.$ds."sbin";
|
|
+
|
|
+ $PATH .= GetCorrectPath($COMPATH, $PERL_PATH, $TCSH_PATH, $compiler);
|
|
+
|
|
+ $PATH .= $ps.$USR.$ds."sbin".
|
|
+ $ps.$USR.$ds."X11R6".$ds."bin".
|
|
+ $ps.$USR.$LIB;
|
|
+}
|
|
+
|
|
elsif ($platform eq "$Winnt")
|
|
{ $COMPATH_ROOT = $COMPATH;
|
|
$COMPATH_ROOT =~ s/\/vc98$//;
|
|
@@ -1067,25 +1088,19 @@
|
|
{
|
|
$SOLARINC .= $I.$USR.$INCLUDE.
|
|
$STLPORT_stlport;
|
|
-if ($platform eq "$Linux")
|
|
-{
|
|
-# This simply adds an include path, so even cases that break the FHS work
|
|
-$SOLARINC .= $STLPORT_inc_stlport;
|
|
-}
|
|
+
|
|
if ($platform eq "$Solaris")
|
|
{
|
|
$SOLARINC .= '/SC5 ';
|
|
-}
|
|
-# Platform dependent include path at the top of this list of include paths
|
|
-if ($platform eq "$Solaris")
|
|
-{ $SOLARINC .= $I.'$COMPATH'.$ds."include";
|
|
+$SOLARINC .= $I.'$COMPATH'.$ds."include";
|
|
}
|
|
|
|
-if ($platform eq "$Linux")
|
|
+if (($platform eq "$Linux") or ($platform eq "$FreeBSD"))
|
|
{
|
|
# This simply adds an include path, so even cases that break the FHS work
|
|
$SOLARINC .= $STLPORT_inc_stlport;
|
|
}
|
|
+
|
|
$SOLARINC .= $I.'$SOLARENV'.$INC.$ds."Xp31".
|
|
$I.'$JAVA_HOME'.$INCLUDE;
|
|
|
|
@@ -1273,6 +1288,9 @@
|
|
ToFile( "GUIENV", $GUIENV, "e" );
|
|
ToFile( "GVER", $GVER, "e" );
|
|
ToFile( "OS", $OS, "e" );
|
|
+ToFile( "OSVERSION", $OSVERSION, "e" );
|
|
+ToFile( "PTHREAD_CFLAGS", $PTHREAD_CFLAGS, "e" );
|
|
+ToFile( "PTHREAD_LIBS", $PTHREAD_LIBS, "e" );
|
|
ToFile( "OUTPATH", $OUTPATH, "e" );
|
|
ToFile( "INPATH", $INPATH, "e" );
|
|
ToFile( "GVERDIR", $GVERDIR, "e" );
|