Fix the library paths to build working language API extensions.

This fixes the unresolved symbol error reported in the PR.

PR:	ports/29083
This commit is contained in:
Akinori MUSHA
2001-07-23 04:46:32 +00:00
parent 200e127a87
commit f9b948bc4a

View File

@@ -136,6 +136,7 @@ post-extract:
post-patch:
${PERL} -i -pe 's,\blibiconv\b,libgiconv,g;s,-liconv\b,-lgiconv,g' ${WRKSRC}/configure.in
find ${WRKSRC}/src/api -type f | xargs ${GREP} -Ele '-L(\.\./)?\.\./c\+\+/lib' /dev/null | xargs ${PERL} -i -pe 's|-L(?:\.\./)?\.\./c\+\+/lib|-L${LOCALBASE}/lib|'
.if defined(WITH_GTK) && ${WITH_GTK:L} != no
${PERL} -i -pe 's,\bgtk-config\b,${GTK_CONFIG:T},g' ${WRKSRC}/configure.in
.endif