[debian-mysql] What is MYSQL_BUILD_CXXFLAGS?

Jonathan Aquilina eagles051387 at gmail.com
Fri Sep 5 10:16:38 UTC 2014


Just a suggestion here, but has the git repo history been checked just in
case that might shed some light on what it is


On Fri, Sep 5, 2014 at 12:06 PM, Otto Kekäläinen <otto at seravo.fi> wrote:

> Can anybody reply to this, please?
>
> If a handful of people say that they don't know what these are then if
> would be safe to assume this is old cruft.
>
> 2014-09-02 22:29 GMT+03:00 Otto Kekäläinen <otto at seravo.fi>:
> > Hello!
> >
> > I've been trying to clean up the d/rules file and also to address the
> > hardening-wrapper is depricated -issue.
> >
> > I noticed that the rules file in MySQL (and from there inherited,
> > MariaDB too) has variables like MYSQL_BUILD_CXXFLAGS and
> > MYSQL_BUILD_CFLAGS.
> >
> > Grepping for these shows only this:
> > mysql-5.6$ grep -R MYSQL_BUILD_CXXFLAGS *
> > debian/rules:     CXXFLAGS=$${MYSQL_BUILD_CXXFLAGS:-"-O3 -DBIG_JOINS=1
> > -felide-constructors -fno-exceptions -fpermissive -fno-rtti
> > ${FORCE_FPIC_CFLAGS} -fno-strict-aliasing ${TAOCRYPT_OPT}"} \
> > support-files/mysql.5.6.20.spec:export
> > CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS
> > -felide-constructors}}
> > support-files/mysql.spec.sh:export
> > CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS
> > -felide-constructors}}
> >
> > Nothing seems to control or set those variables. They most like are
> > old unused cruft, but I think it's best to check from this list first.
> >
> > Can/should we remove those?
> >
> >
> > Instead we should probably have something like:
> >
> > CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
> > CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
> > CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
> > LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
> >
> > ..as recommended at
> > https://wiki.debian.org/Hardening#Notes_for_packages_using_CMake ?
>
>
>
> --
> Check out our blog at http://seravo.fi/blog
> and follow @ottokekalainen
>
> _______________________________________________
> pkg-mysql-maint mailing list
> pkg-mysql-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-mysql-maint




-- 
Jonathan Aquilina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-mysql-maint/attachments/20140905/86838603/attachment-0001.html>


More information about the pkg-mysql-maint mailing list