diff --git a/makefile b/makefile index 82e08e1981..2fb23cf788 100755 --- a/makefile +++ b/makefile @@ -620,7 +620,7 @@ ifeq ($(platform),darwin) soname-flag = version-script-flag = - lflags = $(common-lflags) -ldl -framework CoreFoundation + lflags = $(common-lflags) -ldl -framework CoreFoundation -framework Foundation ifeq (,$(shell ld -v 2>&1 | grep cctools)) lflags += -Wl,-compatibility_version,1.0.0 diff --git a/openjdk-src.mk b/openjdk-src.mk index feeb3b3674..8236de13b8 100644 --- a/openjdk-src.mk +++ b/openjdk-src.mk @@ -343,7 +343,7 @@ else endif openjdk-cflags += \ - -DMACOSX + -DMACOSX -x objective-c endif endif