Bug 199367
| Summary: | PATCH: sparc64 use CFLAGS | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Dennis Gilmore <dennis> | ||||||
| Component: | libselinux | Assignee: | Daniel Walsh <dwalsh> | ||||||
| Status: | CLOSED RAWHIDE | QA Contact: | |||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | rawhide | CC: | sdsmall, tcallawa | ||||||
| Target Milestone: | --- | Keywords: | Reopened | ||||||
| Target Release: | --- | ||||||||
| Hardware: | sparc64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2007-09-24 15:56:58 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Dennis Gilmore
2006-07-19 03:28:38 UTC
Created attachment 132647 [details]
use cflags
libselinux-1.30.28-1 Created attachment 158944 [details]
use cflags patch
repoening as this is present in libselinux-2.0.13-1.fc7 Steve is this acceptable upstream? I have a patch for libsepol also. It does the same thing. Since your using gcc to link you need to use CFLAGS to ensure that the libraries are correctly linked always. It's ok by me, although I'm wondering what CFLAGS you are supplying that matter here. (In reply to comment #7) > It's ok by me, although I'm wondering what CFLAGS you are supplying that matter > here. For multilib support, sparc needs libselinux (and libsepol) to be built as sparc (32bit) and sparc64 (64bit). sparc builds fine (-m32 is assumed by the compiler), but when building for sparc64, we need all compile and link operations to have -m64 passed for it, or else gcc will mismatch (it will make sparc64 object files, then try to link them as a 32bit library) and the build fails. The easiest way to ensure safe and consistent builds is to universally apply CFLAGS whenever calling CC, which is what this patch does. This is _still_ not applied. We're going on over a year for this bug being open. Please apply this patch, or if not, explain why? This breaks sparc64, and we need to build libselinux (and libsepol, which has the same failure) as sparc64 in order to build gcc. $(LDFLAGS) is not sufficient, we need $(CFLAGS), since it invokes $(CC). Patch was never posted to selinux list? Red Hat bugzilla isn't the right place for upstream fixes? Built into rawhide. Will backport in f7. Submitted an updated patch to upstream. |