mirror of https://github.com/xemu-project/xemu.git
build: Allow CFLAGS to be passed through on macos.
This commit is contained in:
parent
ebcacad78b
commit
0eddb3ead9
6
build.sh
6
build.sh
|
@ -213,12 +213,14 @@ case "$platform" in # Adjust compilation options based on platform
|
||||||
|
|
||||||
python3 ./scripts/download-macos-libs.py ${target_arch}
|
python3 ./scripts/download-macos-libs.py ${target_arch}
|
||||||
lib_prefix=${PWD}/macos-libs/${target_arch}/opt/local
|
lib_prefix=${PWD}/macos-libs/${target_arch}/opt/local
|
||||||
export CFLAGS="-arch ${target_arch} \
|
export CFLAGS="${CFLAGS} \
|
||||||
|
-arch ${target_arch} \
|
||||||
-target ${target_arch}-apple-macos${macos_min_ver} \
|
-target ${target_arch}-apple-macos${macos_min_ver} \
|
||||||
-isysroot ${sdk} \
|
-isysroot ${sdk} \
|
||||||
-I${lib_prefix}/include \
|
-I${lib_prefix}/include \
|
||||||
-mmacosx-version-min=$macos_min_ver"
|
-mmacosx-version-min=$macos_min_ver"
|
||||||
export LDFLAGS="-arch ${target_arch} \
|
export LDFLAGS="${LDFLAGS} \
|
||||||
|
-arch ${target_arch} \
|
||||||
-isysroot ${sdk}"
|
-isysroot ${sdk}"
|
||||||
if [ "$target_arch" == "x86_64" ]; then
|
if [ "$target_arch" == "x86_64" ]; then
|
||||||
sys_cflags='-march=ivybridge'
|
sys_cflags='-march=ivybridge'
|
||||||
|
|
Loading…
Reference in New Issue