Skip to content

Commit

Permalink
macOS natives: specifically target Mac OS X 10.7.
Browse files Browse the repository at this point in the history
...rather than accepting whatever default we get for the x86_64 arch.
I've chosen 10.7 because that's the lowest requirement I can find for a
Java 8 JDK. No sense in building natives for anything older if there's
no way to run them there.
  • Loading branch information
MrDOS committed Aug 25, 2023
1 parent 0f3e8ab commit d4e0124
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,12 @@ ppc:
$(MAKE) -f natives.mk

# Requires a macOS host.
osx: export CFLAGS += -I$(JAVA_HOME)/include/darwin -arch x86_64
osx: export LDFLAGS := -arch x86_64 -dynamiclib -framework IOKit -framework CoreFoundation
osx: export CFLAGS += -I$(JAVA_HOME)/include/darwin \
-target x86_64-apple-macos10.7
osx: export LDFLAGS := -target x86_64-apple-macos10.7 \
-dynamiclib \
-framework IOKit \
-framework CoreFoundation
osx: export objects := fuserImp.o SerialImp.o
osx: export platform := osx
osx: export lib_type := jnilib
Expand Down

0 comments on commit d4e0124

Please sign in to comment.