|
@@ -126,6 +126,14 @@ SP_FLAGS := $(shell $(SP_TEST) && $(ECHO) '-fno-stack-protector')
|
126
|
126
|
CFLAGS += $(SP_FLAGS)
|
127
|
127
|
endif
|
128
|
128
|
|
|
129
|
+# Some versions of gas choke on division operators, treating them as
|
|
130
|
+# comment markers. Specifying --divide will work around this problem,
|
|
131
|
+# but isn't available on older gas versions.
|
|
132
|
+#
|
|
133
|
+DIVIDE_TEST = $(AS) --divide /dev/null -o /dev/null 2>/dev/null
|
|
134
|
+DIVIDE_FLAGS := $(shell $(DIVIDE_TEST) && $(ECHO) '--divide')
|
|
135
|
+ASFLAGS += $(DIVIDE_FLAGS)
|
|
136
|
+
|
129
|
137
|
###############################################################################
|
130
|
138
|
#
|
131
|
139
|
# Build verbosity
|