diff options
Diffstat (limited to 'profiles/arch/x86/profile.bashrc')
-rw-r--r-- | profiles/arch/x86/profile.bashrc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/profiles/arch/x86/profile.bashrc b/profiles/arch/x86/profile.bashrc new file mode 100644 index 00000000..23caf5b8 --- /dev/null +++ b/profiles/arch/x86/profile.bashrc @@ -0,0 +1,12 @@ +if [[ ${EBUILD_PHASE} == "setup" ]] ; then + + # on x86, -pg requires the frame pointer, so turning it off makes no sense + if hasq profile ${IUSE} && useq profile && \ + hasq -fomit-frame-pointer ${CFLAGS} ${CXXFLAGS} + then + eerror "\nUSE=profile and -fomit-frame-pointer make no sense" + eerror "Fix your build settings to avoid build failures\n" + [[ -z ${EPAUSE_IGNORE} ]] && sleep 5 + fi + +fi |