-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gcc*-libs: Enhance the override specs.
With our GCC packages encoding LOCALBASE as a default search path to help out-of-pkgsrc builds for regular users, this turns out to subvert buildlink3 as libraries were being pulled in directly if they happened to be installed. The new implicit DEPENDS checks helped to expose these problems. To avoid this happening we now override the link flag specs to remove LOCALBASE from the default search path. While here remove some redundant USE_PKGSRC_GCC_RUNTIME checks, these files are only ever included if that is already set.
- Loading branch information
Showing
4 changed files
with
57 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
*link_arch32: | ||
%{YP,*} %{R*} %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp%R/lib:%R/usr/lib} %{!p:%{!pg:-Y P,%R/lib:%R/usr/lib}}} | ||
|
||
*link_arch64: | ||
%{YP,*} %{R*} %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp/amd64:%R/lib/amd64:%R/usr/lib/amd64} %{!p:%{!pg:-Y P,%R/lib/amd64:%R/usr/lib/amd64}}} | ||
|
||
*link_arch_default: | ||
%(link_arch64) | ||
|
||
*link_libgcc: | ||
%D -R@LIBGCC_PREFIX@/lib/%M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
*link_arch32: | ||
%{YP,*} %{R*} %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp%R/lib:%R/usr/lib} %{!p:%{!pg:-Y P,%R/lib:%R/usr/lib}}} | ||
|
||
*link_arch64: | ||
%{YP,*} %{R*} %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp/amd64:%R/lib/amd64:%R/usr/lib/amd64} %{!p:%{!pg:-Y P,%R/lib/amd64:%R/usr/lib/amd64}}} | ||
|
||
*link_arch_default: | ||
%(link_arch64) | ||
|
||
*link_libgcc: | ||
%D -R@LIBGCC_PREFIX@/lib/%M |