[Bug 47218] New: "--rpath" given via LDFLAGS is not honored as wine precedes a "--rpath,$ORIGIN"
https://bugs.winehq.org/show_bug.cgi?id=47218 Bug ID: 47218 Summary: "--rpath" given via LDFLAGS is not honored as wine precedes a "--rpath,$ORIGIN" Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: build-env Assignee: wine-bugs(a)winehq.org Reporter: mail+wine(a)m-reimer.de Distribution: --- I've tried to do a proper fix but gave up after some time. I want to build wine against a patched glibc to work around https://bugs.winehq.org/show_bug.cgi?id=47198 I thought it should be enough to pass "-Wl,--rpath" via LDFLAGS but this doesn't work as the LDFLAGS are appended *after* Wine adds a "-Wl,--rpath,$ORIGIN". As rpath's are applied in command line order, my "rpath" isn't applied. This, for example, happens when "wine64-installed" is built. My crude fix is: _RPATH="-rpath=/usr/wine-lol-glibc/lib,-rpath=/usr/wine-lol-glibc/lib32" export LDFLAGS="$LDFLAGS,$_RPATH" sed "s|-Wl,--rpath,|-Wl,$_RPATH,--rpath,|g" -i $pkgname/configure* Can you fix this order, so your own "rpath" settings is applied *after* supplied LDFLAGS are added? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=47218 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #1 from Alexandre Julliard <julliard(a)winehq.org> --- I don't think that's a common enough problem to justify adding a generic mechanism. You can either use LD_PRELOAD, put your custom glibc in the same directory as libwine, or run 'make depend LDRPATH_INSTALL=your_rpath; make'. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=47218 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #2 from Austin English <austinenglish(a)gmail.com> --- Closing. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla