discuss-gnustep
[Top][All Lists]
Advanced

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

OPTFLAGS during compilation, make problem


From: Riccardo Mottola
Subject: OPTFLAGS during compilation, make problem
Date: Tue, 17 Apr 2012 16:06:37 +0200
User-agent: Mozilla/5.0 (X11; FreeBSD i386; rv:11.0) Gecko/20120414 Firefox/11.0 SeaMonkey/2.8

Hi,

I'm trying to build base without optimizations. Usually it is a matter of saying debug=yes at make and/or setting -Ox directly in our Library/Makefiles/config.make to be super-sure.

I lost half an afternoon and I still got gui compiled with -O2. The command line I get is:

clang NSAffineTransform.m -c \
-MMD -MP -DGNUSTEP_TARGET_DIR=\".\" -DGNUSTEP_TARGET_CPU=\"ix86\" -DGNUSTEP_TARGET_OS=\"freebsd\" -DLIBRARY_COMBO=\"gnu-gnu-gnu\" -DBACKEND_BUNDLE=1 -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS -pthread -fPIC -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -g -O0 -fgnu-runtime -Wall -fconstant-string-class=NSConstantString -fstack-protector-all -I/usr/local/include/libpng -O2 -pipe -march=prescott -fno-strict-aliasing -I../Headers/Additions -I../Headers -I./. -I. -I/usr/local/include -I/home/multix/GNUstep/Library/Headers -I/Local/Library/Headers -I/System/Library/Headers \
       -o obj/libgnustep-gui.obj/NSAffineTransform.m.o

What looks out of place is:
-fstack-protector-all -I/usr/local/include/libpng -O2 -pipe -march=prescott -fno-strict-aliasing

I have a hint what it is coming from: i'd never optimize for "prescott" a "core" processor.. even if it is written around that it should be the same, it feels just wrong... internet wisdom. I never wrote "prescott".

However look here.
> libpng-config --cflags
-I/usr/local/include/libpng -O2 -pipe -march=prescott -fno-strict-aliasing


I think that our "filter out" is not working properly or should filter out all instances of the optimization flags if there is more than one.

Riccardo



reply via email to

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