diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index fd1e102ccafeb7d1225449f4fff44f9d2517951e..abd954435de43654c2689f428cc5f0bb00360dac 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -2004,7 +2004,9 @@ LCGPackage_Add( pacparser ENVIRONMENT CC=${CMAKE_C_COMPILER} IF LCG_TARGET MATCHES x86_64 THEN - "CFLAGS=-DHAVE_VA_LIST_AS_ARRAY" + PATCH_COMMAND patch -l -p0 -b -i ${CMAKE_CURRENT_SOURCE_DIR}/patches/pacparser-<NATIVE_VERSION>.patch + ELSE + PATCH_COMMAND <VOID> ENDIF URL ${GenURL}/pacparser-${pacparser_native_version}.tar.gz CONFIGURE_COMMAND <VOID> diff --git a/externals/patches/pacparser-1.4.3.patch b/externals/patches/pacparser-1.4.3.patch new file mode 100644 index 0000000000000000000000000000000000000000..f9c82524f46376fa6dc7a4ee30e289588f40f48d --- /dev/null +++ b/externals/patches/pacparser-1.4.3.patch @@ -0,0 +1,11 @@ +--- src/Makefile.orig 2024-06-06 11:59:50.322685556 +0200 ++++ src/Makefile 2024-06-06 12:00:29.493390483 +0200 +@@ -47,7 +47,7 @@ + MKSHLIB = $(CC) -shared + LIB_OPTS = -Wl,-soname=$(LIBRARY) -Wl,-exclude-libs=libjs.a + SHFLAGS = -fPIC +-SMCFLAGS = -DHAVE_VA_COPY -DVA_COPY=va_copy ++SMCFLAGS = -DHAVE_VA_COPY -DVA_COPY=va_copy -DHAVE_VA_LIST_AS_ARRAY + + ifeq ($(OS_ARCH),FreeBSD) + PREFIX ?= /usr/local