Where is make getting these build flags from?
Code:
root@FreeVBox:/usr/ports/ftp/gftp # cat /etc/make.conf Code:
root@FreeVBox:/usr/ports/ftp/gftp # make -dAF/tmp/gftp Code:
root@FreeVBox:/usr/ports/ftp/gftp # cat /tmp/gftp | grep fomit |
Well the -O2 and -pipe are from either the CFLAGS or the COPFLAGS, but there's not enough information to discern where the -fomit-frame-pointer is coming from. Where's the actual Makefile?
|
Quote:
What's highlighted in green is coming from /etc/make.conf. What's highlighted in red is what I'm trying to find the source of. It doesn't show up an an environmental variable. Code:
cc -c -I/usr/local/include -O2 -pipe -fstack-protector -fno-strict-aliasing -02 -pipe -fomit-frame-pointer |
Quote:
EDIT: oops, it's actually under the -d (debug) flag in the BSD one. Quote:
|
Quote:
Quote:
Code:
-d [-]flags |
Quote:
|
Where does make get the OPTIMIZE value from?
Code:
% cat /tmp/gftp | grep OPTIMIZE |
I'm assuming you've grep'ed for these variable names within the build hierarchy as well as your home and tools environment? If somewhere there is a DASH-OH-TWO as opposed to DASH-ZERO-TWO then THAT should be relatively easy to find, not in the log file but in a file used by the build to establish variables.
Version of make? Note also that I have gnumake 3.8.1 and it does not contain the -A flag. Makefile? The debug output doesn't help here. Once the Makefile is posted, it's likely that there will be other support files requested, there's probably an import or include of information/variables within the make which would cause this. I also ran a make -d and searched the output for variables being resolved and it showed absolutely nothing on that subject. Therefore I suspect whatever debug you add to make, may not get the job done. |
My make version is 20150505 from FREEBSD 11.0-CURRENT
When I upgraded to 11.0-CURRENT, I had wiped out both /usr/src and /usr/ports, and used svn to get the new sources. I haven't modified /etc/make.conf or specified make flags anywhere else after that. What's weird is that when I make buildworld under /usr/src, those flags aren't there. But when I try to build something under /usr/ports, that's when they show up. |
Found it!
Code:
# grep -r '02 -pipe -fomit' /usr |
All times are GMT -5. The time now is 02:31 PM. |