mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2025-08-08 20:59:59 +00:00
Change libbrotli compilation flags for macOS
macOS doesn't support the '-Bstatic' flag. Remove it as it is not really needed (the linker will find the static libraries by their name).
This commit is contained in:
@@ -19,7 +19,7 @@ index 3e55230ee..e3ea22b96 100644
|
|||||||
# List of files required to generate VC IDE .dsp, .vcproj and .vcxproj files
|
# List of files required to generate VC IDE .dsp, .vcproj and .vcxproj files
|
||||||
include lib/Makefile.inc
|
include lib/Makefile.inc
|
||||||
diff --git a/configure.ac b/configure.ac
|
diff --git a/configure.ac b/configure.ac
|
||||||
index 63e320236..8c41e8501 100644
|
index 63e320236..86ab654c7 100644
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -1331,7 +1331,8 @@ if test X"$OPT_BROTLI" != Xno; then
|
@@ -1331,7 +1331,8 @@ if test X"$OPT_BROTLI" != Xno; then
|
||||||
@@ -28,7 +28,7 @@ index 63e320236..8c41e8501 100644
|
|||||||
if test -n "$PREFIX_BROTLI"; then
|
if test -n "$PREFIX_BROTLI"; then
|
||||||
- LIB_BROTLI="-lbrotlidec"
|
- LIB_BROTLI="-lbrotlidec"
|
||||||
+ # curl-impersonate: Use static libbrotli
|
+ # curl-impersonate: Use static libbrotli
|
||||||
+ LIB_BROTLI="-Wl,-Bstatic -lbrotlidec-static -lbrotlicommon-static -Wl,-Bdynamic"
|
+ LIB_BROTLI="-lbrotlidec-static -lbrotlicommon-static"
|
||||||
LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
|
LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
|
||||||
CPP_BROTLI=-I${PREFIX_BROTLI}/include
|
CPP_BROTLI=-I${PREFIX_BROTLI}/include
|
||||||
DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
|
DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
|
||||||
|
@@ -19,7 +19,7 @@ index 3e55230ee..90b504b5c 100644
|
|||||||
# List of files required to generate VC IDE .dsp, .vcproj and .vcxproj files
|
# List of files required to generate VC IDE .dsp, .vcproj and .vcxproj files
|
||||||
include lib/Makefile.inc
|
include lib/Makefile.inc
|
||||||
diff --git a/configure.ac b/configure.ac
|
diff --git a/configure.ac b/configure.ac
|
||||||
index 63e320236..238addfaa 100644
|
index 63e320236..40f67f137 100644
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -1331,7 +1331,8 @@ if test X"$OPT_BROTLI" != Xno; then
|
@@ -1331,7 +1331,8 @@ if test X"$OPT_BROTLI" != Xno; then
|
||||||
@@ -28,7 +28,7 @@ index 63e320236..238addfaa 100644
|
|||||||
if test -n "$PREFIX_BROTLI"; then
|
if test -n "$PREFIX_BROTLI"; then
|
||||||
- LIB_BROTLI="-lbrotlidec"
|
- LIB_BROTLI="-lbrotlidec"
|
||||||
+ # curl-impersonate: Use static libbrotli
|
+ # curl-impersonate: Use static libbrotli
|
||||||
+ LIB_BROTLI="-Wl,-Bstatic -lbrotlidec-static -lbrotlicommon-static -Wl,-Bdynamic"
|
+ LIB_BROTLI="-lbrotlidec-static -lbrotlicommon-static"
|
||||||
LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
|
LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
|
||||||
CPP_BROTLI=-I${PREFIX_BROTLI}/include
|
CPP_BROTLI=-I${PREFIX_BROTLI}/include
|
||||||
DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
|
DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
|
||||||
|
Reference in New Issue
Block a user