diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/var-def.mk | 12 |
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@ |