[vlc-commits] [Git][videolan/vlc][master] contrib: freetype: build with PIC

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Nov 16 20:54:27 UTC 2022



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
b0db51a2 by Steve Lhomme at 2022-11-16T19:52:43+00:00
contrib: freetype: build with PIC

I got a Linux x86-64 build complaining it was not built with PIC.

/usr/bin/ld: /root/build/contrib/x86_64-linux-gnu/lib/libfreetype.a(truetype.c.o): warning: relocation against `TT_RunIns' in read-only section `.text'
/usr/bin/ld: /root/build/contrib/x86_64-linux-gnu/lib/libfreetype.a(truetype.c.o): relocation R_X86_64_PC32 against symbol `TT_RunIns' can not be used when making a shared object; recompile with -fPIC

- - - - -


1 changed file:

- contrib/src/freetype2/rules.mak


Changes:

=====================================
contrib/src/freetype2/rules.mak
=====================================
@@ -29,7 +29,7 @@ ifndef AD_CLAUSES
 	$(REQUIRE_GPL)
 endif
 	$(CMAKECLEAN)
-	$(HOSTVARS) $(CMAKE) $(FREETYPE_CONF)
+	$(HOSTVARS) $(CMAKE_PIC) $(FREETYPE_CONF)
 	+$(CMAKEBUILD)
 	$(CMAKEINSTALL)
 	touch $@



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b0db51a268ac26de7de8f6e4d4108bf62a73f7ef

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b0db51a268ac26de7de8f6e4d4108bf62a73f7ef
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list