Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 222619 - dev-libs/nss-3.11.9 uses wrong compiler flags on solaris-sparc
Summary: dev-libs/nss-3.11.9 uses wrong compiler flags on solaris-sparc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: Sparc64 Solaris
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 228717
  Show dependency tree
 
Reported: 2008-05-18 11:51 UTC by Chí-Thanh Christopher Nguyễn
Modified: 2008-06-23 13:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
nss-solaris-use-gcc.patch (nss-solaris-use-gcc.patch,542 bytes, patch)
2008-05-18 11:54 UTC, Chí-Thanh Christopher Nguyễn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chí-Thanh Christopher Nguyễn gentoo-dev 2008-05-18 11:51:56 UTC
Building dev-libs/nss-3.11.9 on solaris-sparc fails, because gcc is called with arguments that only Sun's cc understands.

Reproducible: Always

Steps to Reproduce:
1. emerge =dev-libs/nss-3.11.9

Actual Results:  
sparc-sun-solaris2.10-gcc -xO4 -KPIC -xarch=v8

Expected Results:  
sparc-sun-solaris2.10-gcc -O2 -mcpu=v8

The problem is due to SunOS5.mk not setting NS_USE_GCC. Patch coming up.
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2008-05-18 11:54:28 UTC
Created attachment 153521 [details, diff]
nss-solaris-use-gcc.patch

Patch to make dev-libs/nss compile on solaris
Comment 2 Fabian Groffen gentoo-dev 2008-05-18 20:04:58 UTC
the nss build system does some more hideous things which I'd like to fix at the same time.
Comment 3 Fabian Groffen gentoo-dev 2008-06-23 13:26:05 UTC
I checked in a slightly modified version of your patch, thanks!