Set the proper build flags for Darwin based on the CPU type instead of
assuming PowerPC.
This commit is contained in:
parent
41177ca0bd
commit
495bf51392
|
@ -311,7 +311,7 @@ ac_includes_default="\
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif"
|
#endif"
|
||||||
|
|
||||||
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS DLLDEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os WIN16_FILES WIN16_INSTALL SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS FONTFORGE PKG_CONFIG PRELINK LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS XML2LIBS XML2INCL XSLTLIBS XSLTINCL CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS LCMSLIBS LDAPLIBS FREETYPELIBS FREETYPEINCL ft_devel ft_devel2 FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ESDCONFIG ESDLIBS ESDINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS BUILTINFLAG DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS LDLIBWINEFLAGS COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS WINE_BINARIES MAIN_BINARY LDD LIBOBJS LTLIBOBJS'
|
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS DLLDEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os WIN16_FILES WIN16_INSTALL SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS FONTFORGE PKG_CONFIG PRELINK LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS XML2LIBS XML2INCL XSLTLIBS XSLTINCL CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS LCMSLIBS LDAPLIBS FREETYPELIBS FREETYPEINCL ft_devel ft_devel2 FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ESDCONFIG ESDLIBS ESDINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS BUILTINFLAG DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS COREFOUNDATIONLIB IOKITLIB LDLIBWINEFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS WINE_BINARIES MAIN_BINARY LDD LIBOBJS LTLIBOBJS'
|
||||||
ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_IMPLIB_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
|
ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_IMPLIB_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
|
||||||
|
|
||||||
# Initialize some variables set by options.
|
# Initialize some variables set by options.
|
||||||
|
@ -12720,19 +12720,28 @@ echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
|
||||||
if test "$ac_cv_c_dll_macho" = "yes"
|
if test "$ac_cv_c_dll_macho" = "yes"
|
||||||
then
|
then
|
||||||
LIBEXT="dylib"
|
LIBEXT="dylib"
|
||||||
LDDLLFLAGS="-bundle -read_only_relocs warning"
|
LDDLLFLAGS="-bundle"
|
||||||
LDSHARED="\$(CC) -dynamiclib"
|
LDSHARED="\$(CC) -dynamiclib"
|
||||||
CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
|
|
||||||
STRIP="$STRIP -u -r"
|
STRIP="$STRIP -u -r"
|
||||||
LDEXECFLAGS="-seg1addr 0x120000"
|
COREFOUNDATIONLIB="-framework CoreFoundation"
|
||||||
|
|
||||||
LDLIBWINEFLAGS="-seg1addr 0x140000"
|
IOKITLIB="-framework IOKit -framework CoreFoundation"
|
||||||
|
|
||||||
COREFOUNDATIONLIB="-framework CoreFoundation"
|
case $host_cpu in
|
||||||
|
*i[3456789]86*)
|
||||||
|
LDEXECFLAGS="-image_base 0x7bf00000"
|
||||||
|
|
||||||
IOKITLIB="-framework IOKit"
|
;;
|
||||||
|
*powerpc*)
|
||||||
|
CFLAGS="$CFLAGS -ffixed-r13"
|
||||||
|
LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
|
||||||
|
LDEXECFLAGS="-seg1addr 0x120000"
|
||||||
|
|
||||||
|
LDLIBWINEFLAGS="-seg1addr 0x140000"
|
||||||
|
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
IOKITLIB="$IOKITLIB $COREFOUNDATIONLIB"
|
|
||||||
else
|
else
|
||||||
echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
|
echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
|
||||||
echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
|
echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
|
||||||
|
@ -19585,9 +19594,9 @@ s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
|
||||||
s,@DLLWRAP@,$DLLWRAP,;t t
|
s,@DLLWRAP@,$DLLWRAP,;t t
|
||||||
s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
|
s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
|
||||||
s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
|
s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
|
||||||
s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
|
|
||||||
s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
|
s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
|
||||||
s,@IOKITLIB@,$IOKITLIB,;t t
|
s,@IOKITLIB@,$IOKITLIB,;t t
|
||||||
|
s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
|
||||||
s,@CROSSTEST@,$CROSSTEST,;t t
|
s,@CROSSTEST@,$CROSSTEST,;t t
|
||||||
s,@CROSSCC@,$CROSSCC,;t t
|
s,@CROSSCC@,$CROSSCC,;t t
|
||||||
s,@CROSSWINDRES@,$CROSSWINDRES,;t t
|
s,@CROSSWINDRES@,$CROSSWINDRES,;t t
|
||||||
|
|
28
configure.ac
28
configure.ac
|
@ -1018,19 +1018,25 @@ case $host_os in
|
||||||
if test "$ac_cv_c_dll_macho" = "yes"
|
if test "$ac_cv_c_dll_macho" = "yes"
|
||||||
then
|
then
|
||||||
LIBEXT="dylib"
|
LIBEXT="dylib"
|
||||||
LDDLLFLAGS="-bundle -read_only_relocs warning"
|
LDDLLFLAGS="-bundle"
|
||||||
LDSHARED="\$(CC) -dynamiclib"
|
LDSHARED="\$(CC) -dynamiclib"
|
||||||
CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
|
|
||||||
STRIP="$STRIP -u -r"
|
STRIP="$STRIP -u -r"
|
||||||
dnl Relocate wine executable
|
dnl declare needed frameworks
|
||||||
AC_SUBST(LDEXECFLAGS,"-seg1addr 0x120000")
|
AC_SUBST(COREFOUNDATIONLIB,"-framework CoreFoundation")
|
||||||
dnl Relocate libwine.dyld too
|
AC_SUBST(IOKITLIB,"-framework IOKit -framework CoreFoundation")
|
||||||
AC_SUBST(LDLIBWINEFLAGS,"-seg1addr 0x140000")
|
case $host_cpu in
|
||||||
dnl declare needed frameworks
|
*i[[3456789]]86*)
|
||||||
AC_SUBST(COREFOUNDATIONLIB,"-framework CoreFoundation")
|
AC_SUBST(LDEXECFLAGS,"-image_base 0x7bf00000")
|
||||||
AC_SUBST(IOKITLIB,"-framework IOKit")
|
;;
|
||||||
dnl using IOKit imply we use CoreFoundation too
|
*powerpc*)
|
||||||
IOKITLIB="$IOKITLIB $COREFOUNDATIONLIB"
|
CFLAGS="$CFLAGS -ffixed-r13"
|
||||||
|
LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
|
||||||
|
dnl Relocate wine executable (FIXME: is this really needed?)
|
||||||
|
AC_SUBST(LDEXECFLAGS,"-seg1addr 0x120000")
|
||||||
|
AC_SUBST(LDLIBWINEFLAGS,"-seg1addr 0x140000")
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
else
|
else
|
||||||
AC_CACHE_CHECK(whether we can build an HP-UX dll, ac_cv_c_dll_hpux,
|
AC_CACHE_CHECK(whether we can build an HP-UX dll, ac_cv_c_dll_hpux,
|
||||||
[WINE_TRY_SHLIB_FLAGS([-shared], ac_cv_c_dll_hpux="yes", ac_cv_c_dll_hpux="no")])
|
[WINE_TRY_SHLIB_FLAGS([-shared], ac_cv_c_dll_hpux="yes", ac_cv_c_dll_hpux="no")])
|
||||||
|
|
Loading…
Reference in New Issue