[OpenWrt-Devel] [PATCH] openwrt/hardening: Fix CFLAGS usage for -D_FORTIFY_SOURCE
helmut.schaa at googlemail.com
Tue Sep 8 04:00:17 EDT 2015
On Tue, Sep 8, 2015 at 9:03 AM, Stefan Peter <st3fanp3t3r at gmail.com> wrote:
> Am 07.09.2015 um 17:32 schrieb Helmut Schaa:
>> Fix the following configure error with c-ares by using CPPFLAGS for -D_FORTIFY_SOURCE.
>> Not sure if any other packages suffer from the same issue.
>> configure: using CFLAGS: -Os -pipe -march=74kc -fno-caller-saves -mno-branch-likely -g3 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro
>> configure: CFLAGS error: CFLAGS may only be used to specify C compiler flags, not macro definitions. Use CPPFLAGS for: -D_FORTIFY_SOURCE=1
>> configure: error: Can not continue. Fix errors mentioned immediately above this line.
> Did you get this in the CC branch?
> According to
> this should be fixed in master and applying this patch on top of the CC
> branch worked for me.
I came up with a similar patch now :) but good to know it's fixed in
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel