diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2026-02-28 14:51:00 +0200 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2026-02-28 14:51:00 +0200 |
| commit | ebeb9d5b2757fd6cd238aa8e67c309929366d232 (patch) | |
| tree | 6972dc8ec48c9a71f3da8041c66c03871335c1ae | |
| parent | 74596d8273552f11959fe51fb8fff84a18ca9b83 (diff) | |
configure: fix -DMACRO
| -rwxr-xr-x | configure | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -75,15 +75,14 @@ case ${DPP_LEVEL:-} in '') # # '--prefix=/usr' -> 'export prefix=/usr' # 'prefix=/usr' -> 'export prefix=/usr' - # '-DWORD' -> 'export WORD' 'CFLAGS+=-DWORD' + # '-DWORD' -> 'export WORD' '#undef WORD\n#define WORD' # '-DWORD=val' -> 'export WORD' '#undef WORD\n#define WORD val' # '-UWORD' -> 'unset WORD' 'CFLAGS+=-UWORD' # for a do case $a in --help) cat "$0"; exit 0 ;; - -D*=*) mo="${mo:-}$a + -D*) mo="${mo:-}$a " _a=${a#-D}; export "${_a%%=*}=" ;; - -D*) cc_flags="$cc_flags $a"; export "${a#-D}=" ;; -U*) cc_flags="$cc_flags $a"; unset "${a#-U}" ;; *?=?*) export "${a#--}" ;; esac done |