Commit 5a07b97c authored by anton's avatar anton

support different libtool names (based on configure.in)

parent 891e0220
......@@ -795,6 +795,9 @@ AC_PROG_LN_S
AC_PROG_INSTALL
AC_CHECK_PROGS(TEXI2DVI,texi2dvi4a2ps texi2dvi)
dnl MacOS X has a libtool that does something else
AC_CHECK_PROGS(GNU_LIBTOOL,glibtool libtool)
dnl Checks for library functions
dnl This check is just for making later checks link with libm.
dnl using sin here is no good idea since it is built-into gcc and typechecked
......
......@@ -26,3 +26,7 @@ get-current environment-wordlist set-current
\G Counted string equal to "$host_os"
s" @host_os@" ;
set-current
: libtool-command ( -- c-addr u ) \ gforth
\G name of the GNU libtool command
s" @GNU_LIBTOOL@" ;
......@@ -443,12 +443,14 @@ DEFER compile-wrapper-function
:NONAME ( -- )
c-source-file close-file throw
0 c-source-file-id !
[ s" libtool --silent --mode=compile gcc -I "
s" includedir" getenv append ] sliteral
[ libtool-command s" --silent --mode=compile gcc -I " s+
s" includedir" getenv append ] sliteral
s" -O -c " s+ lib-filename 2@ append s" .c -o " append
lib-filename 2@ append s" .lo" append ( c-addr u )
2dup system drop free throw $? abort" libtool compile failed"
s" libtool --silent --mode=link gcc -module -rpath " tempdir s+ s" " append
[ libtool-command s" --silent --mode=link gcc -module -rpath " s+ ] sliteral
tempdir s+ s" " append
lib-filename 2@ append s" .lo -o " append
lib-filename 2@ append s" .la" append ( c-addr u )
2dup system drop free throw $? abort" libtool link failed"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment