Propagate CONF_CFLAGS (from makeoptions) to the module build too.
Discussed with: jhb (on arch@)
This commit is contained in:
parent
d715e397f0
commit
627693305a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205640
@ -15,6 +15,10 @@ MKMODULESENV+= DESTDIR="${DESTDIR}"
|
||||
SYSDIR?= ${S:C;^[^/];${.CURDIR}/&;}
|
||||
MKMODULESENV+= KERNBUILDDIR="${.CURDIR}" SYSDIR="${SYSDIR}"
|
||||
|
||||
.if defined(CONF_CFLAGS)
|
||||
MKMODULESENV+= CONF_CFLAGS="${CONF_CFLAGS}"
|
||||
.endif
|
||||
|
||||
.MAIN: all
|
||||
|
||||
.for target in all clean cleandepend cleandir clobber depend install \
|
||||
|
@ -325,6 +325,9 @@ ${_src}:
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
# Repsect configuration-specific C flags.
|
||||
CFLAGS+= ${CONF_CFLAGS}
|
||||
|
||||
MFILES?= dev/acpica/acpi_if.m dev/acpi_support/acpi_wmi_if.m \
|
||||
dev/agp/agp_if.m dev/ata/ata_if.m dev/eisa/eisa_if.m \
|
||||
dev/iicbus/iicbb_if.m dev/iicbus/iicbus_if.m \
|
||||
|
Loading…
Reference in New Issue
Block a user