From c2a47571be85d77e9a06ba9675e020bda77c445b Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 22 Sep 2022 14:30:13 -0700 Subject: Propagate CFLAGS passed to configure into CXXFLAGS --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index d4cb83e..41bc5e1 100644 --- a/Makefile.in +++ b/Makefile.in @@ -98,7 +98,7 @@ default-CXXFLAGS := $(default-CFLAGS) -std=c++17 mcppbs-CPPFLAGS := @CPPFLAGS@ mcppbs-CFLAGS := $(default-CFLAGS) @CFLAGS@ -mcppbs-CXXFLAGS := $(default-CXXFLAGS) @CXXFLAGS@ +mcppbs-CXXFLAGS := $(mcppbs-CFLAGS) $(default-CXXFLAGS) @CXXFLAGS@ CC := @CC@ CXX := @CXX@ -- cgit v1.1 From 8af5c39de1d929a0858127073002c2c7d165f15b Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Wed, 28 Sep 2022 01:47:24 -0700 Subject: Fix build using Xcode 14 Don't include .a files in other .a files. Doing so trips a sanity check in the Xcode 14 toolchain, because the included .a files are not themselves mach-o format, even though their contents are. --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 41bc5e1..afa4203 100644 --- a/Makefile.in +++ b/Makefile.in @@ -241,7 +241,7 @@ $(2)_lib_libnames := $$(patsubst %, lib%.a, $$($(2)_lib_libs)) $(2)_lib_libarg := $$(patsubst %, -l%, $$($(2)_lib_libs)) $(2)_lib_libnames_shared := $$(if $$($(2)_install_shared_lib),lib$(1).so,) -lib$(1).a : $$($(2)_objs) $$($(2)_c_objs) $$($(2)_lib_libnames) +lib$(1).a : $$($(2)_objs) $$($(2)_c_objs) $(AR) rcs $$@ $$^ lib$(1).so : $$($(2)_objs) $$($(2)_c_objs) $$($(2)_lib_libnames_shared) $$($(2)_lib_libnames) $(LINK) -shared -o $$@ $(if $(filter Darwin,$(shell uname -s)),-install_name $(install_libs_dir)/$$@) $$^ $$($(2)_lib_libnames) $(LIBS) -- cgit v1.1