Skip to content

Commit 06631b0

Browse files
committed
hints/darwin.sh: define $lddlflags earlier
So it can be appended, otherwise it just hardcodes lddlflags="-bundle -undefined dynamic_lookup" Make sure MACOSX_DEPLOYMENT_TARGET is added to $lddlflags.
1 parent 4ef64bd commit 06631b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hints/darwin.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ case "$osvers" in # Note: osvers is the kernel version, not the 10.x
295295
esac
296296
;;
297297
*) # OS X 10.5.x - current
298+
lddlflags="-bundle -undefined dynamic_lookup"
298299
# The MACOSX_DEPLOYMENT_TARGET is not needed,
299300
# but the -mmacosx-version-min option is always used.
300301

@@ -304,6 +305,7 @@ case "$osvers" in # Note: osvers is the kernel version, not the 10.x
304305
[1-9][0-9].*)
305306
add_macosx_version_min ccflags $MACOSX_DEPLOYMENT_TARGET
306307
add_macosx_version_min ldflags $MACOSX_DEPLOYMENT_TARGET
308+
add_macosx_version_min lddlflags $MACOSX_DEPLOYMENT_TARGET
307309
;;
308310
'')
309311
# Empty MACOSX_DEPLOYMENT_TARGET is okay.
@@ -357,7 +359,6 @@ EOM
357359
esac
358360
fi
359361

360-
lddlflags="-bundle -undefined dynamic_lookup"
361362
;;
362363
esac
363364

0 commit comments

Comments
 (0)