links: fix x86_64 build.

This commit is contained in:
Jérôme Duval
2016-12-20 21:36:00 +01:00
parent 643a3b3cb4
commit cdb2a41d52
2 changed files with 8 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ HOMEPAGE="http://links.twibright.com/"
COPYRIGHT="1999 - 2011 Mikulas Patocka
2000 - 2011 Petr Kulhavy, Karel Kulhavy, Martin Pergel"
LICENSE="GNU GPL v2"
REVISION="1"
REVISION="2"
SOURCE_URI="http://links.twibright.com/download/links-2.8.tar.gz"
CHECKSUM_SHA256="5070a759af7f107ca4f9572833b8f086cd9f7c21ef5e1fce8482a2883a743c7a"
PATCHES="links-2.8.patch"
@@ -47,6 +47,10 @@ BUILD_PREREQUIRES="
BUILD()
{
STDCPPLIBS=-lstdc++
if [ "$targetArchitecture" = x86_gcc2 ]; then
STDCPPLIBS=-lstdc++.r4
fi
aclocal
automake --add-missing
autoheader
@@ -55,7 +59,7 @@ BUILD()
runConfigure ./configure \
--without-x \
--enable-graphics
make
make STDCPPLIBS=$STDCPPLIBS
}
INSTALL()

View File

@@ -299,7 +299,7 @@ diff -urN links-2.8.org/haiku.cpp links-2.8/haiku.cpp
+ // return;
+ BMessenger msgr(WindowAt(0));
+ BMessage *m = new BMessage(*message);
+ m->AddSpecifier("View", (long)0);
+ m->AddSpecifier("View", (int32)0);
+ //m->what = B_SIMPLE_DATA;
+ if (msgr.IsValid()) {
+ msgr.SendMessage(m);
@@ -1177,7 +1177,7 @@ diff -urN links-2.8.org/Makefile.am links-2.8/Makefile.am
endif
+if HAIKU_GR
+links_LDADD=haiku.o -lbe
+links_LDADD=haiku.o -lbe $(STDCPPLIBS)
+EXTRA_links_DEPENDENCIES=links-haiku.rsrc
+# automake will not let us touch the binary after link
+# and install will not copy the attributes anyway... so do it after install