Solène Rapenne:

> is that the work needed for each port reported by W^X violation ?

> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/databases/mongodb/Makefile,v
> retrieving revision 1.22
> diff -u -p -r1.22 Makefile
> --- Makefile  20 Jun 2016 09:07:43 -0000      1.22
> +++ Makefile  8 Aug 2016 14:25:29 -0000
> @@ -40,7 +40,7 @@ MODSCONS_ENV =      CC="${CC}" \
>               CXX="${CXX}" \
>               CCFLAGS="${CFLAGS} -DBOOST_NO_USER_CONFIG" \
>               CXXFLAGS="${CXXFLAGS}" \
> -             LINKFLAGS="${LDFLAGS}" \
> +             LINKFLAGS="${LDFLAGS} -z wxneeded" \

Most likely this will need the cc form (-Wl,-z,wxneeded).

Also, only those executables that actually need it should be linked
like that.  The port installs a bunch:

@bin bin/mongo
@bin bin/mongod
@bin bin/mongoperf
@bin bin/mongos
@bin bin/mongosniff

Which need it?

And of course some further analysis what the heck mongo is doing
there would be nice...

-- 
Christian "naddy" Weisgerber                          na...@mips.inka.de

Reply via email to