Page MenuHomeFreeBSD

share/mk: pass SHARED_CFLAGS to PIC and PIE from assembly
ClosedPublic

Authored by brooks on Thu, May 22, 3:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 29, 11:34 AM
Unknown Object (File)
Wed, May 28, 6:51 PM
Unknown Object (File)
Tue, May 27, 11:05 PM
Unknown Object (File)
Sun, May 25, 5:34 AM
Unknown Object (File)
Sat, May 24, 8:40 AM
Unknown Object (File)
Sat, May 24, 2:09 AM
Unknown Object (File)
Sat, May 24, 1:15 AM
Unknown Object (File)
Sat, May 24, 12:57 AM

Details

Summary

This mirrors what we do for C code.

PR: 286975

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I wish we had these documented somewhere, so we could include a note that ${SHARED_CFLAGS} (along with ${CFLAGS} and ${PIEO_CFLAGS}/${PICO_CFLAGS} etc.).

I see three SHARED_CFLAGS references: in lib/libc/sys/Makefile.inc (noted in the PR), share/mk/bsd.sanitizer.mk, and lib/libarchive/Makefile.inc. I'm not sure why libarchive's addition of ICONV-related flags are in SHARED_CFLAGS not CFLAGS.

  • Drop PICO_CFLAGS, and friends
  • Document SHARED_CFLAGS
This revision is now accepted and ready to land.Thu, May 22, 11:28 PM