Mailing List gnuports@2rosenthals.com Archived Message #667

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

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?

TIA

--
Lewis
-------------------------------------------------------------
Lewis G Rosenthal, CNA, CLP, CLE, CWTS, EA
Rosenthal & Rosenthal, LLC                www.2rosenthals.com
visit my IT blog                www.2rosenthals.net/wordpress
-------------------------------------------------------------


Subscribe: Feed, Digest, Index.
Unsubscribe
Mail to ListMaster