Fixed system lib paths getting hardcoded

Authored by maxrd2 on Dec 5 2019, 11:07 PM.



Craft recipes that depend on qt5 fail on non-debian based linux systems with:

g++ -m64 -Wl,--no-undefined -Wl,--version-script,QtSvg.version -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN -Wl,-rpath,\$ORIGIN -shared -Wl,-Bsymbolic-functions -Wl,-soname, -o .obj/qsvggraphics.o .obj/qsvghandler.o .obj/qsvgnode.o .obj/qsvgstructure.o .obj/qsvgstyle.o .obj/qsvgfont.o .obj/qsvgtinydocument.o .obj/qsvgrenderer.o .obj/qsvgwidget.o .obj/qgraphicssvgitem.o .obj/qsvggenerator.o .obj/moc_qsvgwidget.o  -L/usr/X11R6/lib64 -L/home/max/projects/KDE/craft/lib /home/max/projects/KDE/craft/lib/ /home/max/projects/KDE/craft/lib/ /home/max/projects/KDE/craft/lib/ -lpthread /home/max/projects/KDE/craft/lib/   
/bin/ld: cannot find
collect2: error: ld returned 1 exit status

This change does regexp replace so instead of '' linker is invoked with '-lGL'

Diff Detail

R877 Craft Blueprints for KDE
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
maxrd2 requested review of this revision.Dec 5 2019, 11:07 PM
maxrd2 created this revision.
maxrd2 edited the summary of this revision. (Show Details)Dec 5 2019, 11:08 PM
vonreth accepted this revision.Dec 6 2019, 8:46 AM
This revision is now accepted and ready to land.Dec 6 2019, 8:46 AM

@vonreth I believe I don't have permissions to land this patch.

This revision was automatically updated to reflect the committed changes.