Mailing List Archived Message #667

From: "Lewis G Rosenthal" <> Full Headers
Undecoded message
Subject: CFLAGS for rpmbuild
Date: Sun, 30 Dec 2018 23:22:13 -0500
To: GNU Ports for eCS Mailing List <>

Hi, all...

My normal CFLAGS setting is:

-g -O2 -Zexe

which seems non-optimal, but which surely lacks -march= and -mtune= options. However, while running rpmbuild for cabextract (new package to extract from those pesky Window cabinet files), I see:

Executing(%build): /@unixroot/usr/bin/sh -e /@unixroot/var/tmp/rpm-tmp.7kQWZx
* CFLAGS=-O2 -g -march=i386 -mtune=i686 ./configure --prefix=/usr

This is surely not coming from ~/.rpmrc, so...where is this set?

I expect the default to be i686 (I guess), but how to properly override, and how to set -Zhigh-mem?


Lewis G Rosenthal, CNA, CLP, CLE, CWTS, EA
Rosenthal & Rosenthal, LLC      
visit my IT blog      

Subscribe: Feed, Digest, Index.
Mail to ListMaster