[Bug 232331] [PATCH] dns/c-ares: build fail if macro defined in CFLAGS

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Oct 16 21:26:21 UTC 2018


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

            Bug ID: 232331
           Summary: [PATCH] dns/c-ares: build fail if macro defined in
                    CFLAGS
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: zi at FreeBSD.org
          Reporter: rozhuk.im at gmail.com
          Assignee: zi at FreeBSD.org
             Flags: maintainer-feedback?(zi at FreeBSD.org)

Created attachment 198237
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=198237&action=edit
patch

I have in /etc/make.conf
CFLAGS+=-O2 -DSTRIP_FBSDID -pipe
CFLAGS+=-D_FORTIFY_SOURCE=2

Build fail with:
...
configure: using CFLAGS: -O2 -pipe -O2 -DSTRIP_FBSDID -pipe -D_FORTIFY_SOURCE=2
-mretpoline  -fno-strict-aliasing 
configure: CFLAGS error: CFLAGS may only be used to specify C compiler flags,
not macro definitions. Use CPPFLAGS for: -DSTRIP_FBSDID
configure: CFLAGS error: CFLAGS may only be used to specify C compiler flags,
not macro definitions. Use CPPFLAGS for: -D_FORTIFY_SOURCE=2
...

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list