mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 18:09:20 +02:00
* Fix to not print empty -Fl when gcclib not found
This commit is contained in:
parent
93299ef090
commit
ce67daed63
@ -40,8 +40,13 @@ fi
|
|||||||
# Find path to libgcc.a
|
# Find path to libgcc.a
|
||||||
GCCSPEC=`(gcc -v 2>&1)| head -n 1| awk '{ print $4 } '`
|
GCCSPEC=`(gcc -v 2>&1)| head -n 1| awk '{ print $4 } '`
|
||||||
GCCDIR=`dirname $GCCSPEC`
|
GCCDIR=`dirname $GCCSPEC`
|
||||||
echo Found libgcc.a in $GCCDIR
|
echo $GCCDIR
|
||||||
|
if [ -f $GCCDIR ]; then
|
||||||
|
echo BSD'ers don't need gccdir.
|
||||||
|
else
|
||||||
|
echo Found libgcc.a in $GCCDIR
|
||||||
|
GCCDIR=-Fl$GCCDIR
|
||||||
|
fi
|
||||||
# Write the file
|
# Write the file
|
||||||
echo Writing sample configuration file to $thefile
|
echo Writing sample configuration file to $thefile
|
||||||
cat <<EOFCFG > $thefile
|
cat <<EOFCFG > $thefile
|
||||||
@ -159,7 +164,7 @@ cat <<EOFCFG > $thefile
|
|||||||
#-Fu~/fpc/packages/*;~/fpc/rtl/linux
|
#-Fu~/fpc/packages/*;~/fpc/rtl/linux
|
||||||
|
|
||||||
# searchpath for libraries
|
# searchpath for libraries
|
||||||
-Fl$GCCDIR
|
$GCCDIR
|
||||||
#-Fl/pp/lib
|
#-Fl/pp/lib
|
||||||
#-Fl/lib;/usr/lib
|
#-Fl/lib;/usr/lib
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user