patch-rocdigs_makefile 939 B

1234567891011121314151617181920212223242526272829
  1. $OpenBSD: patch-rocdigs_makefile,v 1.1 2017/05/07 23:57:16 espie Exp $
  2. Index: rocdigs/makefile
  3. --- rocdigs/makefile.orig
  4. +++ rocdigs/makefile
  5. @@ -69,7 +69,7 @@ else ifeq ($(PLATFORM),OPENBSD)
  6. DIRPREFIX=unx
  7. CC_EXTRA_FLAGS=-fPIC
  8. LNK_FLAGS=-shared
  9. - LNK=gcc
  10. + LNK=$(CC)
  11. SHAREDSUFFIX=.so
  12. else
  13. LIBS=-lpthread -ldl
  14. @@ -88,10 +88,10 @@ DEBUG=-g
  15. DESTDIR=$(FS)opt$(FS)rocrail
  16. BINDIR=..$(FS)rocs$(FS)bin
  17. -CPP=$(TOOLPREFIX)gcc
  18. +CPP=$(TOOLPREFIX)$(CC)
  19. INCL_PATH=$(MOUNTPOINT)
  20. -CC_FLAGS=-c $(CC_EXTRA_FLAGS) $(DEBUG) -I$(INCL_PATH) -I$(GENDIR)
  21. -DDL_CC_FLAGS=-c $(CC_EXTRA_FLAGS) $(DEBUG) -O2 -I$(INCL_PATH) -I$(GENDIR)
  22. +CC_FLAGS=-c $(CC_EXTRA_FLAGS) $(CFLAGS) $(DEBUG) -I$(INCL_PATH) -I$(GENDIR)
  23. +DDL_CC_FLAGS=-c $(CC_EXTRA_FLAGS) $(CFLAGS) $(DEBUG) -O2 -I$(INCL_PATH) -I$(GENDIR)
  24. RRLIBS=$(OUTDIR)$(FS)libwrapper.a $(OUTDIR)$(FS)librocutils.a $(OUTDIR)$(FS)librocs.a
  25. OBJS=$(patsubst impl/%.c,$(TMPOUTDIR)/%.o,$(wildcard impl/*.c))