tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] fix: respect CFLAGS from environment, or set defaults


From: Boian Berberov
Subject: [Tinycc-devel] fix: respect CFLAGS from environment, or set defaults
Date: Fri, 27 Sep 2024 18:55:43 +0000

Hello,

I followed the instructions on the front page.  I tried to push to `/refs/mob/...` but it was refused.  It seems my patch is at the tip of `mob` right now.

The commit is: 3ead10dd94d7080b54c20da1eb07c7b383fda058

I was trying to build `tcc` on OBS (build.opensuse.org), from `mob`, for multiple distros, and I had lots of issues, until I implemented this patch.  It seemed appropriate to submit it here.  Sorry if I broke someone else's pipelines.



diff --git c/configure w/configure
index e7735a4e..703ab63f 100755
--- c/configure
+++ w/configure
@@ -56,7 +56,9 @@ build_cross=
 # use CC/AR from environment when set
 test -n "$CC" && cc="$CC"
 test -n "$AR" && ar="$AR"
-test -n "CFLAGS" && CFLAGS="-Wall -O2"
+
+# set default CFLAGS if unset in environment
+test -z "$CFLAGS" && CFLAGS="-Wall -O2"
 
 # find source path
 source_path=${0%configure}



Respectfully,

Boian Berberov
_________________________

NOTICE: This email account is hosted on Google Workspace


reply via email to

[Prev in Thread] Current Thread [Next in Thread]