pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

How to avoid compiler wrapper rewrites for "gcc --help"



Is there a way to tell the compiler wrapper to leave all gcc options
alone if the "--help" option is present?

Currently, it transforms "cc -v --help" into
"/tmpfs/emulators/open-simh/work.x86_64/.gcc/bin/gcc -fcommon
-Wl,-zrelro -v --help -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong
-I/tmpfs/emulators/open-simh/work.x86_64/.buildlink/include -pie"
and then gcc produces a shorter help output.

In particular the "-Wl,-zrelro" part seems to caus that, on gcc10 from
pkgsrc. The 9.3 base system gcc (7.5) is ok.

This causes miscompilation of emulators/open-simh.

You can try it with 

/usr/pkg/gcc10/bin/gcc -v --help -Wl,-zrelro 2>&1 |grep finline-func

compared with the same without -Wl,-zrelro and/or other gcc versions.

-Olaf.
-- 
___ "Buying carbon credits is a bit like a serial killer paying someone else to
\X/  have kids to make his activity cost neutral." -The BOFH    falu.nl@rhialto

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index