patch-native_Makefile 688 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-native_Makefile,v 1.1 2017/03/06 21:19:20 jca Exp $
  2. --- native/Makefile.orig Mon Mar 6 21:59:50 2017
  3. +++ native/Makefile Mon Mar 6 22:00:22 2017
  4. @@ -81,7 +81,7 @@ LIBPFX=lib
  5. LIBSFX=.so
  6. ARSFX=.a
  7. JNISFX=$(LIBSFX)
  8. -CC=gcc
  9. +CC?=gcc
  10. LD=$(CC)
  11. LIBS=
  12. # CC_OPTS only applied to objects build for jnidispatch, not for libffi
  13. @@ -95,7 +95,7 @@ LIBS=
  14. # variables is ignored.
  15. LOC_CC_OPTS=-Wno-unknown-warning-option -Werror -Wno-clobbered
  16. # Default to Sun recommendations for JNI compilation
  17. -COPT=-O2 -fno-omit-frame-pointer -fno-strict-aliasing
  18. +COPT=${PORTS_CFLAGS} -fno-omit-frame-pointer -fno-strict-aliasing
  19. CASM=-S
  20. ifeq ($(DEBUG),true)
  21. CDEBUG=-g