mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-27 09:26:21 +00:00
Update compiler flags for homebrew packages on Apple silicon
Add /opt/homebrew/{include,lib} flags for apple silicon macs, which are not included as default search paths by Clang/GCC. (Homebrew uses /usr/local/{include,lib} on intel macs)
This commit is contained in:
@@ -39,7 +39,11 @@ AC_DEFINE_UNQUOTED([PACKAGE_STATUS], ["$PACKAGE_STATUS"], [Status of this build]
|
|||||||
AS_IF([test "x$PLATFORM" = xcygwin],
|
AS_IF([test "x$PLATFORM" = xcygwin],
|
||||||
[AC_DEFINE([PLATFORM_CYGWIN], [1], [Cygwin])])
|
[AC_DEFINE([PLATFORM_CYGWIN], [1], [Cygwin])])
|
||||||
AS_IF([test "x$PLATFORM" = xosx],
|
AS_IF([test "x$PLATFORM" = xosx],
|
||||||
[AC_DEFINE([PLATFORM_OSX], [1], [OSx])])
|
[AC_DEFINE([PLATFORM_OSX], [1], [OSx])
|
||||||
|
# Apple silicon homebrew flags
|
||||||
|
AC_CHECK_FILE([/opt/homebrew/include],
|
||||||
|
[AM_CFLAGS="$AM_CFLAGS -I/opt/homebrew/include"
|
||||||
|
AM_LDFLAGS="$AM_LDFLAGS -L/opt/homebrew/lib"])])
|
||||||
|
|
||||||
## Environment variables
|
## Environment variables
|
||||||
AC_ARG_VAR([PYTHON_FRAMEWORK], [Set base directory for Python Framework])
|
AC_ARG_VAR([PYTHON_FRAMEWORK], [Set base directory for Python Framework])
|
||||||
|
|||||||
Reference in New Issue
Block a user