mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-09-19 02:27:55 +08:00
Try setting --no-undefined on Linux
This commit is contained in:
@@ -29,7 +29,7 @@ build_script:
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
C:\cygwin64\setup-x86_64.exe -qP bison libiodbc-devel
|
C:\cygwin64\setup-x86_64.exe -qP bison flex libiodbc-devel
|
||||||
C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/mdbtools && autoreconf -i -f -Wno-portability"
|
C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/mdbtools && autoreconf -i -f -Wno-portability"
|
||||||
C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/mdbtools && ./configure --disable-man --disable-silent-rules --with-iodbc=/usr"
|
C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/mdbtools && ./configure --disable-man --disable-silent-rules --with-iodbc=/usr"
|
||||||
C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/mdbtools && make"
|
C:\cygwin64\bin\sh -lc "cd /cygdrive/c/projects/mdbtools && make"
|
||||||
|
@@ -70,7 +70,9 @@ AC_SUBST(LFLAGS)
|
|||||||
|
|
||||||
CFLAGS="$CFLAGS -Wall -Werror"
|
CFLAGS="$CFLAGS -Wall -Werror"
|
||||||
AS_CASE([$host],
|
AS_CASE([$host],
|
||||||
[*mingw*|*cygwin*], [LDFLAGS="$LDFLAGS -no-undefined"], [])
|
[*mingw*|*cygwin*], [LDFLAGS="$LDFLAGS -no-undefined"],
|
||||||
|
[*darwin*], [],
|
||||||
|
[LDFLAGS="$LDFLAGS -Wl,--no-undefined"])
|
||||||
AS_CASE([$host],
|
AS_CASE([$host],
|
||||||
[*mingw*], [LDFLAGS="$LDFLAGS -lWs2_32"], [])
|
[*mingw*], [LDFLAGS="$LDFLAGS -lWs2_32"], [])
|
||||||
dnl Enable -Wl,--as-needed by default to prevent overlinking
|
dnl Enable -Wl,--as-needed by default to prevent overlinking
|
||||||
|
Reference in New Issue
Block a user