Hi Chris,
> > Strip it? As in, the output of CFLAGS ends up in the build...?
>
> Indeed:
>
> $ irb
> irb(main):001:0> RbConfig::CONFIG['CFLAGS']
> => "-g -O2 -fdebug-prefix-map=/build/ruby2.3-TqM27i/ruby2.3-2.3.3=. -
> fstack-protector-strong -Wformat -Werror=format-security -fPIC"
>
> AFAIK the popular extension building mechanisms (mkmf et al) use this
> to discover the required build flags when compiling native extensions.
Getcha. They won't need that *particular* -fdebug-prefix-map value
though so you can probably strip it immediately prior to it
landing in the binary artifact(s) via:
$ sed -e 's@ [^ ]*-f\(file\|debug\)-prefix-map=[^ ]*@@g'
Best wishes,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] 🍥 chris-lamb.co.uk
`-
_______________________________________________
Pkg-ruby-extras-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers