source: git/m4/win-flags.m4 @ ab7174f

spielwiese
Last change on this file since ab7174f was ab7174f, checked in by Max Horn <max@…>, 4 years ago
Remove executable bit from some files ... and ensure that libpolys-config is always executable
  • Property mode set to 100644
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.