added -arch also to LDFLAGS
This commit is contained in:
parent
fee611ad81
commit
431ed8ee81
@ -17,13 +17,15 @@ CC = gcc
|
||||
|
||||
CFLAGS = -O3 -Wall -Wpedantic -Wextra
|
||||
CFLAGS_ALL = -I${DATA_DIR}/src -I${PLUGIN_DIR} -I${TINYWAV_DIR} -I${MIDI_PARSER_DIR}/include -fPIC ${CFLAGS} ${CFLAGS_EXTRA}
|
||||
ifeq ($(UNAME_S), Darwin)
|
||||
CFLAGS_ALL := ${CFLAGS_ALL} -arch arm64 -arch x86_64
|
||||
endif
|
||||
|
||||
LDFLAGS =
|
||||
LDFLAGS_ALL = ${LDFLAGS} ${LDFLAGS_EXTRA}
|
||||
|
||||
ifeq ($(UNAME_S), Darwin)
|
||||
CFLAGS_ALL := ${CFLAGS_ALL} -arch arm64 -arch x86_64
|
||||
LDFLAGS_ALL := ${LDFLAGS_ALL} -arch arm64 -arch x86_64
|
||||
endif
|
||||
|
||||
PROGRAM = ${BUNDLE_NAME}${EXE_SUFFIX}
|
||||
|
||||
all: build/${PROGRAM}
|
||||
|
@ -27,13 +27,15 @@ PLUGIN_DIR := $(or $(PLUGIN_DIR),src)
|
||||
|
||||
CFLAGS = -O3 -Wall -Wpedantic -Wextra
|
||||
CFLAGS_ALL = -I${DATA_DIR}/src -I${PLUGIN_DIR} -fPIC ${CFLAGS} ${CFLAGS_EXTRA}
|
||||
ifeq ($(UNAME_S), Darwin)
|
||||
CFLAGS_ALL := ${CFLAGS_ALL} -arch arm64 -arch x86_64
|
||||
endif
|
||||
|
||||
LDFLAGS =
|
||||
LDFLAGS_ALL = -shared ${LDFLAGS} ${LDFLAGS_EXTRA}
|
||||
|
||||
ifeq ($(UNAME_S), Darwin)
|
||||
CFLAGS_ALL := ${CFLAGS_ALL} -arch arm64 -arch x86_64
|
||||
LDFLAGS_ALL := ${LDFLAGS_ALL} -arch arm64 -arch x86_64
|
||||
endif
|
||||
|
||||
BUNDLE_DIR = ${BUNDLE_NAME}.lv2
|
||||
|
||||
DLL_FILE = ${BUNDLE_NAME}${DLL_SUFFIX}
|
||||
|
@ -29,13 +29,15 @@ PLUGIN_DIR := $(or $(PLUGIN_DIR),src)
|
||||
|
||||
CFLAGS = -O3 -Wall -Wpedantic -Wextra
|
||||
CFLAGS_ALL = -I${DATA_DIR}/src -I${PLUGIN_DIR} -fPIC ${CFLAGS} ${CFLAGS_EXTRA}
|
||||
ifeq ($(UNAME_S), Darwin)
|
||||
CFLAGS_ALL := ${CFLAGS_ALL} -arch arm64 -arch x86_64
|
||||
endif
|
||||
|
||||
LDFLAGS =
|
||||
LDFLAGS_ALL = -shared -lm ${LDFLAGS} ${LDFLAGS_EXTRA}
|
||||
|
||||
ifeq ($(UNAME_S), Darwin)
|
||||
CFLAGS_ALL := ${CFLAGS_ALL} -arch arm64 -arch x86_64
|
||||
LDFLAGS_ALL := ${LDFLAGS_ALL} -arch arm64 -arch x86_64
|
||||
endif
|
||||
|
||||
BUNDLE_DIR = ${BUNDLE_NAME}.vst3
|
||||
|
||||
DLL_DIR = Contents/${PLATFORM}
|
||||
|
Loading…
Reference in New Issue
Block a user