[Bug 224488] Should LDFLAGS+=-Wl,--as-needed be always added when USE_QT5=gui is used?

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 20 20:15:56 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224488

            Bug ID: 224488
           Summary: Should LDFLAGS+=-Wl,--as-needed be always added when
                    USE_QT5=gui is used?
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr at FreeBSD.org
          Reporter: yuri at freebsd.org
                CC: freebsd-ports-bugs at FreeBSD.org

It appears that USE_QT5 always/often induces the unneeded OpenGL dependency.
The recipe to cure this has been floated around: to add
"LDFLAGS+=-Wl,--as-needed" in the individual ports. For example, this was done
in this submission: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224470

Routinely adding such LDFLAGS to ports seems to be wrong to me. If --as-needed
changes the list of actually linked libraries, then the list needs to be fixed
instead?

Does USE_QT5=gui always supply wrong link flags, erroneously containing the
opengl lib? Is this a problem of framework, or Qt ports, or Qt upstream?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ports-bugs mailing list