https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236565

--- Comment #5 from [email protected] ---
(In reply to Mathieu Arnold from comment #4)

I play with /usr/src/share/mk/sys.mk / /usr/share/mk/sys.mk
__MAKE_CONF=/dev/null
must be placed before make called if you already set CFLAGS and other staff.
Ports build system prepare all env variables and nothink to load from make.conf
at this point.

If I put:
__MAKE_CONF=/dev/null
to /etc/make.conf or in /usr/share/mk/sys.mk after
.include "${__MAKE_CONF}"
- this does nothing, because importing already done here, and new import will
be started after make executed.

If I also add:
.export __MAKE_CONF / .export-env __MAKE_CONF
then this breaks PORTS_MODULES modules build, because they does not load
make.conf and have no varibles from parent process.

So this must be done only in ports framework to fix ports build.
Possible this also should be added to some points in base system to fix
doubling CFLAGS during system build.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to