Hallo,
* Guillaume Delacour [Sun, Sep 07 2014, 10:05:08PM]:
> > very messy and the best way to get reproducible builds actually to make
> > OOST builds and wipe the directory on cleaning.
> 
> This is exactly the reason why debhelper does not consider a "real"
> cmake build system because of the presence of GNUmakefile.
> 
> To have a verbose build instead of "dh_auto_build -- VERBOSE=1":
> 
>       export CMAKEOPTS+=-DCMAKE_VERBOSE_MAKEFILE=ON
> 
> Do the job but when the fortify flag disappear (!).
> 
> For CPPFLAGS (which is ignored by CMake itself) i tried different
> methods such as:
> 
>       include /usr/share/dpkg/buildflags.mk
>       CFLAGS+=$(CPPFLAGS)
>       CXXFLAGS+=$(CPPFLAGS)
> 
> Another one:
>       export CMAKEOPTS+=-DCMAKE_VERBOSE_MAKEFILE=ON 
> -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="$(CXXFLAGS) -D_FORTIFY_SOURCE=2"
>       
> 
> With no success.

I think, the thing you are trying to achieve is what you already get
using DEB_CXXFLAGS_MAINT_APPEND like I did in the experimental version
(this is commented out in debian/rules in current revion because -flto
didn't work reliably).

But it didn't work for me either. I see 
-D_FORTIFY_SOURCE=2

everywhere but something is still not protected, -v tels me:

 Fortify Source functions: yes (some protected functions found)
  unprotected: gethostname
  unprotected: memcpy
  unprotected: memset
  unprotected: read
  unprotected: memmove
  unprotected: recv

I will check again later this week... thanks for reporting, though.

Regards,
Eduard.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to