New Unix configure system
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
26
install/unix/setup/shared/sharedAIX
Executable file
26
install/unix/setup/shared/sharedAIX
Executable file
@@ -0,0 +1,26 @@
|
||||
#! /bin/sh
|
||||
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_BASE=`echo $LIBRARY_BASE | sed 's/.so/.sa/'`
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
ar cr $LIBRARY_FILE~ $LIBRARY_OBJS
|
||||
nm $LIBRARY_OBJS | awk '/ [BD] /{print $$3}' | sort | uniq > ${LIBRARY_FILE}.syms
|
||||
ld -o shr.o $LIBRARY_FILE~ -lX11 -lXt -lc -lm -H512 -T512 -bE:${LIBRARY_FILE}.syms -bM:SRE
|
||||
rm -f $LIBRARY_FILE~
|
||||
ar ruv $LIBRARY_FILE shr.o
|
||||
chmod a+x $LIBRARY_FILE
|
||||
|
33
install/unix/setup/shared/sharedBsd
Executable file
33
install/unix/setup/shared/sharedBsd
Executable file
@@ -0,0 +1,33 @@
|
||||
#! /bin/sh
|
||||
|
||||
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
CC -Bshareable -Bforcearchive -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
rm -f $LIBRARY_BASE
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE
|
||||
|
||||
|
||||
|
||||
|
29
install/unix/setup/shared/sharedDgux
Executable file
29
install/unix/setup/shared/sharedDgux
Executable file
@@ -0,0 +1,29 @@
|
||||
#! /bin/sh
|
||||
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_BASE=`echo $LIBRARY_BASE | sed 's/.so/.sl/'`
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
CC -G -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
|
||||
|
||||
|
||||
|
29
install/unix/setup/shared/sharedHpux
Executable file
29
install/unix/setup/shared/sharedHpux
Executable file
@@ -0,0 +1,29 @@
|
||||
#! /bin/sh
|
||||
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_BASE=`echo $LIBRARY_BASE | sed 's/.so/.sl/'`
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
CC -Wl,+s -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
|
||||
|
||||
|
||||
|
45
install/unix/setup/shared/sharedIrix
Executable file
45
install/unix/setup/shared/sharedIrix
Executable file
@@ -0,0 +1,45 @@
|
||||
#! /bin/sh
|
||||
# on Irix, position independent code is the default
|
||||
|
||||
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1";
|
||||
done
|
||||
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test ! -f /tmp/so_locations; then
|
||||
if test -f /usr/lib/so_locations; then
|
||||
cp /usr/lib/so_locations /tmp
|
||||
else
|
||||
touch /tmp/so_locations
|
||||
fi
|
||||
fi
|
||||
chmod u+w /tmp/so_locations
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -Wl,-update_registry,/tmp/so_locations \
|
||||
-Wl,-soname,$LIBRARY_NAME.$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
CC -shared -update_registry /tmp/so_locations \
|
||||
-soname $LIBRARY_NAME.$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
rm -f $LIBRARY_BASE
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE
|
||||
|
||||
|
||||
|
||||
|
34
install/unix/setup/shared/sharedLinux
Executable file
34
install/unix/setup/shared/sharedLinux
Executable file
@@ -0,0 +1,34 @@
|
||||
#! /bin/sh
|
||||
|
||||
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
case $COMPILER in gcc*|*gcc)
|
||||
$COMPILER -shared -Wl,-soname,$LIBRARY_NAME.$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
;;
|
||||
*)
|
||||
$COMPILER -shared -soname $LIBRARY_NAME.$LIBRARY_MAJOR -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
esac
|
||||
chmod a+x $LIBRARY_FILE
|
||||
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
rm -f $LIBRARY_BASE
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE
|
||||
|
||||
|
||||
|
||||
|
33
install/unix/setup/shared/sharedOSF
Executable file
33
install/unix/setup/shared/sharedOSF
Executable file
@@ -0,0 +1,33 @@
|
||||
#! /bin/sh
|
||||
|
||||
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -Wl,-soname,$LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
$COMPILER -shared -soname $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
rm -f $LIBRARY_BASE
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE
|
||||
|
||||
|
||||
|
||||
|
33
install/unix/setup/shared/sharedSolaris2
Executable file
33
install/unix/setup/shared/sharedSolaris2
Executable file
@@ -0,0 +1,33 @@
|
||||
#! /bin/sh
|
||||
|
||||
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
CC -G -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
rm -f $LIBRARY_BASE
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE
|
||||
|
||||
|
||||
|
||||
|
33
install/unix/setup/shared/sharedSunos4
Executable file
33
install/unix/setup/shared/sharedSunos4
Executable file
@@ -0,0 +1,33 @@
|
||||
#! /bin/sh
|
||||
|
||||
#LIBRARY_BASE=`echo $1 | sed 's/.a/.so/'`
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE.$LIBRARY_MAJOR.$LIBRARY_MINOR
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
CC -assert pure-text -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
rm -f $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR.$LIBRARY_MINOR $LIBRARY_BASE.$LIBRARY_MAJOR
|
||||
rm -f $LIBRARY_BASE
|
||||
ln -s $LIBRARY_NAME.$LIBRARY_MAJOR $LIBRARY_BASE
|
||||
|
||||
|
||||
|
||||
|
29
install/unix/setup/shared/sharedSysV
Executable file
29
install/unix/setup/shared/sharedSysV
Executable file
@@ -0,0 +1,29 @@
|
||||
#! /bin/sh
|
||||
|
||||
COMPILER=$1
|
||||
LIBRARY_BASE=$2
|
||||
LIBRARY_MAJOR=$3
|
||||
LIBRARY_MINOR=$4
|
||||
shift 3
|
||||
LIBRARY_OBJS=
|
||||
while (test $# -ne 1) do
|
||||
shift;
|
||||
LIBRARY_OBJS="$LIBRARY_OBJS $1sh";
|
||||
done
|
||||
|
||||
LIBRARY_BASE=`echo $LIBRARY_BASE | sed 's/.so/.sl/'`
|
||||
LIBRARY_NAME=`basename $LIBRARY_BASE`
|
||||
LIBRARY_FILE=$LIBRARY_BASE
|
||||
|
||||
echo "Creating shared library: $LIBRARY_FILE"
|
||||
|
||||
if test "x$COMPILER" = xgcc ; then
|
||||
gcc -shared -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
else
|
||||
CC -G -h $LIBRARY_NAME -o $LIBRARY_FILE $LIBRARY_OBJS
|
||||
fi
|
||||
chmod a+x $LIBRARY_FILE
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user