diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-01-21 12:05:12 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-01-21 12:05:12 +0100 |
commit | 360d1a1db1521b04b738697e7b13508625248288 (patch) | |
tree | e6e1c395b90596a6faa989ad9f6a5ad632a0ec45 /vendor/librune | |
parent | 6781dd8116586b6dbed97d282a05289acce4043e (diff) |
Improve the build system
Diffstat (limited to 'vendor/librune')
-rw-r--r-- | vendor/librune/make.c | 11 |
1 files changed, 5 insertions, 6 deletions
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); |