File: fix_m64_on_some_archs

package info (click to toggle)
aegean 0.16.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 8,444 kB
  • sloc: ansic: 12,050; python: 465; sh: 315; makefile: 308; perl: 151
file content (44 lines) | stat: -rw-r--r-- 936 bytes parent folder | download | duplicates (5)
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
39
40
41
42
43
44
Description: Fix -m64 on some archs
Author: Sascha Steinbiss <sascha@steinbiss.name>
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,8 @@
 CC=gcc
 CFLAGS=-Wall -DAGN_DATA_PATH='"$(prefix)/share/aegean"' -Wno-unused-result
 GTFLAGS=prefix=$(prefix)
+SYSTEM:=$(shell uname -s)
+MACHINE:=$(shell uname -m)
 ifeq ($(cairo),no)
   CFLAGS += -DWITHOUT_CAIRO
   GTFLAGS += cairo=no
@@ -43,8 +45,10 @@
   CFLAGS += -O3
 endif
 ifneq ($(64bit),no)
-  CFLAGS += -m64
-  GTFLAGS += 64bit=yes
+  ifeq (,$(filter $(MACHINE),ia64 alpha mips64 mips64el aarch64))
+    CFLAGS += -m64
+    GTFLAGS += 64bit=yes
+  endif
 endif
 ifneq ($(debug),no)
   CFLAGS += -g
@@ -70,7 +74,7 @@
 
 # Targets
 all:		$(BINS) libaegean.a
-		
+
 
 install:	all
 		@ mkdir -p $(prefix)/bin/
@@ -146,7 +150,7 @@
 		@ ar ru libaegean.a $(AGN_OBJS)
 
 inc/core/AgnVersion.h:	
-			@- echo "[print $@]"
+			@ echo "[print $@]"
 			@ data/scripts/version.py > $@
 
 test:		agn-test