summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-11-29 14:10:27 +1100
committer Vas Crabb <vas@vastheman.com>2018-11-29 14:10:27 +1100
commitc2dc4316bdfb59972c2d1b204f46f059f898ea0f (patch)
tree8dac044df4a6e9f53af08fd4ae32a46c74405ab6 /makefile
parentb568e6deab3edaea3f4a15a0253ad64fc5a9897b (diff)
(nw) fix stuff:
* Add per-language compiler flag options to help with exotic setups * Get rid of a potention buffer overrun in NuBus image card * CHAR_WIDTH and LONG_WIDTH are preprocessor macros in limits.h with glibc if __GLIBC_USE (IEC_60559_BFP_EXT) is enabled - avoid using them as names * Make formats/upd765_dsk.h slightly safer with defualt initialisers for key format members * Don't rely on random BSS data being zero in imagedev/floppy.cpp
Diffstat (limited to 'makefile')
-rw-r--r--makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/makefile b/makefile
index 60655420859..620897c5b49 100644
--- a/makefile
+++ b/makefile
@@ -52,6 +52,10 @@
# MAP = 1
# PROFILE = 1
# ARCHOPTS =
+# ARCHOPTS_C =
+# ARCHOPTS_CXX =
+# ARCHOPTS_OBJC =
+# ARCHOPTS_OBJCXX =
# OPT_FLAGS =
# LDOPTS =
@@ -627,6 +631,22 @@ ifdef ARCHOPTS
PARAMS += --ARCHOPTS='$(ARCHOPTS)'
endif
+ifdef ARCHOPTS_C
+PARAMS += --ARCHOPTS_C='$(ARCHOPTS_C)'
+endif
+
+ifdef ARCHOPTS_CXX
+PARAMS += --ARCHOPTS_CXX='$(ARCHOPTS_CXX)'
+endif
+
+ifdef ARCHOPTS_OBJC
+PARAMS += --ARCHOPTS_OBJC='$(ARCHOPTS_OBJC)'
+endif
+
+ifdef ARCHOPTS_OBJCXX
+PARAMS += --ARCHOPTS_OBJCXX='$(ARCHOPTS_OBJCXX)'
+endif
+
ifdef OPT_FLAGS
PARAMS += --OPT_FLAGS='$(OPT_FLAGS)'
endif