[hackers] [sbase] build: Fix .c and bc: rules || Roberto E. Vargas Caballero
commit abce467a9d5f61d41957f435cec34f28d1c5e1dc
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.net>
AuthorDate: Sat Nov 22 12:04:36 2025 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.net>
CommitDate: Sat Nov 22 12:04:36 2025 +0100
build: Fix .c and bc: rules
These rules were not adding the proper flags in every case
resulting in the lost of some important flags in some
cases.
diff --git a/Makefile b/Makefile
index 754ab1d..77445dd 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -219,10 +219,10 @@ $(OBJ) $(BIN): $(HDR)
$(CC) $(CPPFLAGS) $(CFLAGS) -o $_AT_ -c $<
.c:
- $(CC) $(CPPFLAGS) $(CFLAGS) -o $_AT_ $< $(LIB)
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $_AT_ $< $(LIB)
bc: bc.c
- $(CC) $(LDFLAGS) -o $_AT_ bc.c $(LIB)
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $_AT_ bc.c $(LIB)
$(MAKEOBJ): make/make.h
diff --git a/bc.y b/bc.y
index d161f7e..94e17c5 100644
--- a/bc.y
+++ b/bc.y
_AT_@ -1,5 +1,4 @@
%{
-#define _XOPEN_SOURCE
#include <unistd.h>
#include <ctype.h>
Received on Sat Nov 22 2025 - 12:05:24 CET
This archive was generated by hypermail 2.3.0
: Sat Nov 22 2025 - 12:12:36 CET