From 360d1a1db1521b04b738697e7b13508625248288 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 21 Jan 2024 12:05:12 +0100 Subject: Improve the build system --- vendor/librune/make.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'vendor/librune/make.c') diff --git a/vendor/librune/make.c b/vendor/librune/make.c index 6248f3b..c8a2d4d 100644 --- a/vendor/librune/make.c +++ b/vendor/librune/make.c @@ -10,13 +10,11 @@ #define CC "cc" #ifdef __APPLE__ -# define CFLAGS \ - "-Wall", "-Wextra", "-Wpedantic", "-Werror", "-pipe", "-Iinclude", \ - "-fPIC", "-O3" +# define CFLAGS "-Wall", "-Wextra", "-Wpedantic", "-Werror", "-pipe", "-O3" #else # define CFLAGS \ - "-Wall", "-Wextra", "-Wpedantic", "-Werror", "-pipe", "-Iinclude", \ - "-fPIC", "-O3", "-march=native", "-mtune=native" + "-Wall", "-Wextra", "-Wpedantic", "-Werror", "-pipe", "-O3", \ + "-march=native", "-mtune=native" #endif #define cmdprc(c) \ @@ -85,8 +83,9 @@ work(void *p) dst[strlen(dst) - 1] = 'o'; env_or_default(&sv, "CC", CC); + env_or_default(&sv, "CFLAGS", CFLAGS); cmdaddv(&c, sv.buf, sv.len); - cmdadd(&c, CFLAGS, "-o", dst, "-c", src); + cmdadd(&c, "-Iinclude", "-fPIC", "-o", dst, "-c", src); cmdprc(c); free(dst); -- cgit v1.2.3