summaryrefslogtreecommitdiff
blob: 53c71f21580d00c185ce678778a51fa6de50c5eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Removes forced march setting and align-functions on x86, as they would
override user's CFLAGS.

--- qemacs-orig/Makefile
+++ qemacs/Makefile
@@ -29,32 +29,6 @@
     cmd   := 
 endif
 
-ifeq ($(CC),gcc)
-  CFLAGS   += -Wall -g -O2 -funsigned-char
-  # do not warn about zero-length formats.
-  CFLAGS   += -Wno-format-zero-length
-  LDFLAGS  := -g
-endif
-
-#include local compiler configuration file
--include $(DEPTH)/cflags.mk
-
-ifdef TARGET_GPROF
-  CFLAGS  += -p
-  LDFLAGS += -p
-endif
-
-TLDFLAGS := $(LDFLAGS)
-
-ifdef TARGET_ARCH_X86
-  #CFLAGS+=-fomit-frame-pointer
-  ifeq ($(GCC_MAJOR),2)
-    CFLAGS+=-m386 -malign-functions=0
-  else
-    CFLAGS+=-march=i386 -falign-functions=0
-  endif
-endif
-
 DEFINES=-DHAVE_QE_CONFIG_H
 
 ########################################################