mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 12:19:18 +02:00
* BSD additions
This commit is contained in:
parent
05d37c8126
commit
8e81a66b4c
@ -4,6 +4,10 @@
|
|||||||
#
|
#
|
||||||
# Generate Sample Free Pascal configuration file
|
# Generate Sample Free Pascal configuration file
|
||||||
#
|
#
|
||||||
|
|
||||||
|
HOSTOS=`uname -s | tr A-Z a-z`
|
||||||
|
echo Running on $HOSTOS
|
||||||
|
|
||||||
if [ $# = 0 ]; then
|
if [ $# = 0 ]; then
|
||||||
echo 'Usage :'
|
echo 'Usage :'
|
||||||
echo 'samplecfg fpcdir confdir'
|
echo 'samplecfg fpcdir confdir'
|
||||||
@ -42,7 +46,18 @@ GCCSPEC=`(gcc -v 2>&1)| head -n 1| awk '{ print $4 } '`
|
|||||||
GCCDIR=`dirname $GCCSPEC`
|
GCCDIR=`dirname $GCCSPEC`
|
||||||
echo $GCCDIR
|
echo $GCCDIR
|
||||||
if [ -f $GCCDIR ]; then
|
if [ -f $GCCDIR ]; then
|
||||||
echo BSD'ers don't need gccdir.
|
# include ports tree dir for FreeBSDers.
|
||||||
|
case $HOSTOS in
|
||||||
|
freebsd)
|
||||||
|
GCCDIR=-Fl/usr/local/lib
|
||||||
|
;;
|
||||||
|
openbsd)
|
||||||
|
GCCDIR=-Fl/usr/local/lib
|
||||||
|
;;
|
||||||
|
netbsd)
|
||||||
|
GCCDIR=-Fl/usr/pkg/lib
|
||||||
|
;;
|
||||||
|
esac
|
||||||
else
|
else
|
||||||
echo Found libgcc.a in $GCCDIR
|
echo Found libgcc.a in $GCCDIR
|
||||||
GCCDIR=-Fl$GCCDIR
|
GCCDIR=-Fl$GCCDIR
|
||||||
|
Loading…
Reference in New Issue
Block a user