- Add an ugly kludge to strip the trailing whitespace from CFLAGS (it comes

this way from outside already).  Unless stripped, later CFLAGS+= assignments
  will produce a double-space in CFLAGS string.  Sub-configure will reduce it
  back to single space and complain that CFLAGS changed underneath it.

  Most prominent example of a problem solved by this kludge is the -CURRENT,
  where -fno-strict-aliasing is added to every port's CFLAGS.
This commit is contained in:
Pav Lucistnik 2008-07-24 21:55:47 +00:00
parent 801c0113ea
commit ed7666e663
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=217444

View File

@ -1580,6 +1580,10 @@ PLIST_REINPLACE_DIRRMTRY=s!^@dirrmtry \(.*\)!@unexec rmdir %D/\1 2>/dev/null ||
PLIST_REINPLACE_RMTRY=s!^@rmtry \(.*\)!@unexec rm -f %D/\1 2>/dev/null || true!
PLIST_REINPLACE_STOPDAEMON=s!^@stopdaemon \(.*\)!@unexec %D/etc/rc.d/\1${RC_SUBR_SUFFIX} forcestop 2>/dev/null || true!
# kludge to strip trailing whitespace from CFLAGS;
# sub-configure will not # survive double space
CFLAGS:= ${CFLAGS:C/ $//}
.if defined(WITHOUT_CPU_CFLAGS)
.if defined(_CPUCFLAGS)
.if !empty(_CPUCFLAGS)