Bug 239626

Summary: devel/uatraits: fix build with GCC-based architectures
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: Dmitry Sivachenko <demon>
Status: Closed FIXED    
Severity: Affects Only Me CC: demon
Priority: --- Flags: demon: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch pkubaj: maintainer-approval? (demon)

Description Piotr Kubaj freebsd_committer freebsd_triage 2019-08-03 20:23:47 UTC
Created attachment 206253 [details]
patch

To link with boost, new GCC is needed on GCC architectures.

Add -L${OPENSSLLIB} only when OPENSSLLIB is not /usr/lib. Adding -L/usr/lib when using ports GCC makes GCC prefer /usr/lib/libstdc++.so instead of its own libstdc++, which makes the build fail.
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-12-04 12:42:10 UTC
A commit references this bug:

Author: pkubaj
Date: Wed Dec  4 12:41:25 UTC 2019
New revision: 519011
URL: https://svnweb.freebsd.org/changeset/ports/519011

Log:
  devel/uatraits: fix build with GCC-based architectures

  To link with boost, new GCC is needed on GCC architectures.

  Add -L${OPENSSLLIB} only when OPENSSLLIB is not /usr/lib. Adding -L/usr/lib when using ports GCC makes GCC prefer /usr/lib/libstdc++.so instead of its own libstdc++, which makes the build fail.

  PR:		239626
  Approved by:	mentors (implicit approval), daemon (maintainer, earlier version)

Changes:
  head/devel/uatraits/Makefile
  head/devel/uatraits/files/patch-config_libxml2.m4