Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on archlinux (armv7) without -fPIC #37

Closed
jholster opened this issue Nov 11, 2015 · 1 comment
Closed

Build fails on archlinux (armv7) without -fPIC #37

jholster opened this issue Nov 11, 2015 · 1 comment

Comments

@jholster
Copy link

Building openvg on archlinux (armv7 / rpi2) fails:

$ make
/usr/bin/ld: libshapes.o: relocation R_ARM_MOVW_ABS_NC against `stdin' can not be used when making a shared object; recompile with -fPIC

To fix the issue, you have add -fPIC to INCLUDEFLAGS:

diff --git a/Makefile b/Makefile
index 3976e3e..e454b92 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-INCLUDEFLAGS=-I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads
+INCLUDEFLAGS=-I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads -fPIC
LIBFLAGS=-L/opt/vc/lib -lGLESv2 -lEGL -ljpeg
-FONTLIB=/usr/share/fonts/truetype/ttf-dejavu
+FONTLIB=/usr/share/fonts/TTF
FONTFILES=DejaVuSans.inc DejaVuSansMono.inc DejaVuSerif.inc
all: font2openvg fonts library

@ajstarks
Copy link
Owner

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants