aboutsummaryrefslogtreecommitdiff
path: root/config/var-def.mk
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-04-04 17:45:24 +0000
committerdos-reis <gdr@axiomatics.org>2008-04-04 17:45:24 +0000
commit9ec061da5420a937a145d846b32f26ebf077ce12 (patch)
tree96c76c56147e213e6d82bd2dc5d53b8c637c346c /config/var-def.mk
parent96d20bd36c0db8aadbac6282404cf82b764545c0 (diff)
downloadopen-axiom-9ec061da5420a937a145d846b32f26ebf077ce12.tar.gz
* configure.ac.pamphlet: Disable Libtool for building shared
libraries on MinGW and Cygwin. * config/var-def.mk (SHREXT): Tidy. (LINK_SHRLIB): New.
Diffstat (limited to 'config/var-def.mk')
-rw-r--r--config/var-def.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/config/var-def.mk b/config/var-def.mk
index ccd0c721..3a4efcc9 100644
--- a/config/var-def.mk
+++ b/config/var-def.mk
@@ -56,7 +56,7 @@ CFLAGS = @CFLAGS@
OBJEXT = @OBJEXT@
EXEEXT = @EXEEXT@
# this includes leading period
-SHREXT = @shrext_cmds@
+SHREXT = @shared_ext@
# this does not include period
LIBEXT = @libext@
@@ -74,6 +74,16 @@ COMPILE = $(LIBTOOL) --mode=compile $(CC) -c
## This situation is to be fixed when I have time.
LINK = $(LIBTOOL) --mode=link $(CC) -static
+## Libtool is a disaster for building DLLs on Cygwin, and insists
+## on adding silly extensions where it should not on MinGW, so we have
+## to be very selective about when and where to use. Sadly, that ends
+## up negating the whole point of having Libtool in the first place.
+ifeq (@oa_use_libtool_for_shared_lib@,no)
+LINK_SHRLIB = $(CC) -shared
+else
+LINK_SHRLIB = $(LIBTOOL) --mode=link $(CC) -shared -module
+endif
+
AUTOCONF = autoconf
AWK = @AWK@