blob: fc7be206297ae38647b1e658da36b01e128b1a1c (
plain) (
blame)
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
|
Clang does not support -fthread-jumps as of now.
This fixes "cc: error: unknown argument: '-fthread-jumps'"
Replace hardcoded "gcc" with $CC
Include system $CFLAGS to the local CFLAGS variable
--- Makefile.orig 2025-04-05 22:56:41 UTC
+++ Makefile
@@ -50,14 +50,13 @@ ifeq ($(origin CC),default)
######################################################################
ifeq ($(origin CC),default)
-CC = gcc
+CC = ${CC}
endif
PKG_CONFIG ?= pkg-config
INSTALL ?= install
-CFLAGS = -O2 -Wall \
- -fcaller-saves -ffast-math -fno-strength-reduce \
- -fthread-jumps
+CFLAGS := ${CFLAGS} -Wall \
+ -fcaller-saves -ffast-math -fno-strength-reduce
GDK_VERS := 3
|