source: git/m4/win-flags.m4 @ 952bd16

spielwiese
Last change on this file since 952bd16 was f6e134, checked in by Erik M. Bray <erik.bray@…>, 7 years ago
Make modules in dyn_modules require libSingular to be built first on Windows only, and only for modules that are not being built as built-in modules.
  • Property mode set to 100755
File size: 540 bytes
Line 
1AC_DEFUN([SING_WIN_FLAGS], [
2dnl To ensure that $enable_shared is defined
3  AC_REQUIRE([LT_INIT])
4
5  AC_CANONICAL_HOST
6
7dnl Maybe necessary for mingw as well but haven't tested
8  case $host_os in
9    *cygwin* | *mingw*) os_win32=yes;;
10    *) os_win32=no;;
11  esac
12
13  AC_SUBST(SINGULAR_LDFLAGS)
14
15  if test x$os_win32 = xyes; then
16    AX_APPEND_LINK_FLAGS([-Wl,-Bdynamic])
17dnl libtool requires "-no-undefined" for win32 dll
18    SINGULAR_LDFLAGS="$SINGULAR_LDFLAGS -no-undefined"
19  fi
20
21  AM_CONDITIONAL([SING_WIN], [test x$os_win32 = xyes])
22])
Note: See TracBrowser for help on using the repository browser.