mirror of
https://github.com/chocolate-doom/chocpkg.git
synced 2024-11-10 07:11:39 +00:00
Add -static-libgcc to LDFLAGS on Windows builds.
This is needed to avoid adding a dependency on libgcc_s_sjlj-1.dll.
This commit is contained in:
parent
40f576b7b9
commit
1e478f8cb3
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ if [ $(uname) = "Darwin" ]; then
|
|||
LDFLAGS="-lobjc ${LDFLAGS:-}"
|
||||
MACOSX_DEPLOYMENT_TARGET=10.7
|
||||
export LDFLAGS MACOSX_DEPLOYMENT_TARGET
|
||||
elif [[ "$BUILD_HOST" =~ mingw ]]; then
|
||||
# MingW builds need the -static-libgcc linker option, otherwise we
|
||||
# will depend on an unnecessary DLL, libgcc_s_sjlj-1.dll:
|
||||
LDFLAGS="-static-libgcc ${LDFLAGS:-}"
|
||||
else
|
||||
# Include $INSTALL_DIR/lib in the list of paths that is searched
|
||||
# when looking for DLLs. This allows built binaries to be run
|
||||
|
|
Loading…
Reference in a new issue