-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
120 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
mkdir bin | ||
|
||
target=${host} | ||
|
||
OSX_SDK=${host_prefix}/native/SDK | ||
|
||
for tool in clang clang++; do | ||
tool_path=bin/${target}-${tool} | ||
cat > "$tool_path" <<EOF | ||
#!/bin/sh | ||
exec env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \ | ||
-u OBJC_INCLUDE_PATH -u OBJCPLUS_INCLUDE_PATH -u CPATH \ | ||
-u LIBRARY_PATH \ | ||
${tool} --target=${target} \ | ||
-B${host_prefix}/native/bin \ | ||
-isysroot${OSX_SDK} -nostdlibinc \ | ||
-iwithsysroot/usr/include \ | ||
-iframeworkwithsysroot/System/Library/Frameworks \ | ||
-pipe -mmacosx-version-min=11 -mlinker-version=711 -Wl,-platform_version,macos,11,11.0 -Wl,-no_adhoc_codesign -fuse-ld=lld "\$@" | ||
EOF | ||
chmod +x "$tool_path" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
diff --git a/configure.ac b/configure.ac | ||
index 6dc7c698..3ce6cb78 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -41,30 +41,6 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) | ||
EXTRA_CPPFLAGS= | ||
EXTRA_CFLAGS= | ||
|
||
-dnl check for -std=gnu11 compiler support (optional) | ||
-dnl note that we don't just check if the compiler accepts '-std=x11' | ||
-dnl but also that it supports the _Thread_local keyword because some compilers | ||
-dnl (e.g. gcc 4.8) accept the command line option but do not implement TLS | ||
-saved_CFLAGS="${CFLAGS}" | ||
-CFLAGS="-std=gnu11" | ||
-AC_MSG_CHECKING([if $CC supports -std=gnu11]) | ||
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([_Thread_local int x;], [x = 42;])], | ||
- [AC_MSG_RESULT([yes]) | ||
- c_dialect=gnu], | ||
- [AC_MSG_RESULT([no]) | ||
- c_dialect=]) | ||
-if test "x$c_dialect" != xgnu; then | ||
- dnl fallback check for -std=c11 compiler support (required) | ||
- CFLAGS="-std=c11" | ||
- AC_MSG_CHECKING([if $CC supports -std=c11]) | ||
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([_Thread_local int x;], [x = 42;])], | ||
- [AC_MSG_RESULT([yes])], | ||
- [AC_MSG_RESULT([no]) | ||
- AC_MSG_ERROR([compiler with C11 support is required to build libusb])]) | ||
- c_dialect=c | ||
-fi | ||
-CFLAGS="${saved_CFLAGS}" | ||
- | ||
AC_DEFINE([_GNU_SOURCE], [1], [Enable GNU extensions.]) | ||
AC_DEFINE([DEFAULT_VISIBILITY], [__attribute__ ((visibility ("default")))], [Define to the attribute for default visibility.]) | ||
AC_DEFINE([PRINTF_FORMAT(a, b)], [__attribute__ ((__format__ (__printf__, a, b)))], [Define to the attribute for enabling parameter checks on printf-like functions.]) |
12 changes: 0 additions & 12 deletions
12
contrib/depends/patches/native_cctools/no-build-date.patch
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
contrib/depends/patches/native_libtapi/no_embed_git_rev.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.