Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rofl0r/proxychains-ng.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2022-05-19 12:12:10 +0300
committerrofl0r <rofl0r@users.noreply.github.com>2022-05-19 12:12:10 +0300
commit4b531806b252835b46abc55cb210bdab5ceecf8a (patch)
tree9d684d5487f2606a7d625b4e00850d78e82ff216
parent9b42da71f4df7b783cf07a58ffa095e293c43380 (diff)
configure: add --fat-binary-m1 for arm64e/x86_64 (M1) fat binary
addresses #451 closes #383
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 0102eb2..10403f1 100755
--- a/configure
+++ b/configure
@@ -86,6 +86,7 @@ usage() {
echo " if set to yes ignores CVE-2015-3887 and makes it possible"
echo " to preload from current dir (possibly insecure, but handy)"
echo "--fat-binary : build for both i386 and x86_64 architectures on 64-bit Macs"
+ echo "--fat-binary-m1 : build for both arm64e and x86_64 architectures on M1 Macs"
echo "--hookmethod=dlsym|dyld hook method for osx. default: auto"
echo " if OSX >= 12 is detected, dyld method will be used if auto."
echo "--help : show this text"
@@ -100,6 +101,7 @@ spliteq() {
}
fat_binary=
+fat_binary_m1=
ignore_cve=no
hookmethod=auto
@@ -115,6 +117,7 @@ parsearg() {
--ignore-cve=*) ignore_cve=`spliteq $1`;;
--hookmethod=*) hookmethod=`spliteq $1`;;
--fat-binary) fat_binary=1;;
+ --fat-binary-m1) fat_binary_m1=1;;
--help) usage;;
esac
}
@@ -277,6 +280,11 @@ if ismac ; then
echo "MAC_CFLAGS+=-arch i386 -arch x86_64">>config.mak
echo "LDFLAGS+=-arch i386 -arch x86_64">>config.mak
fi
+ if [ "$fat_binary_m1" = 1 ] ; then
+ echo "Configuring a fat binary for arm64e and x86_64"
+ echo "MAC_CFLAGS+=-arch arm64e -arch x86_64">>config.mak
+ echo "LDFLAGS+=-arch arm64e -arch x86_64">>config.mak
+ fi
elif isbsd ; then
echo LIBDL=>>config.mak
echo "CFLAGS+=-DIS_BSD">>config.mak