• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libplayer/0001-add-fpic.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
 
1
Add -fPIC to CFLAGS
2
​
3
-fPIC is needed to build shared library code.
4
​
5
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
6
​
7
Index: b/src/Makefile
8
===================================================================
9
--- a/src/Makefile
10
+++ b/src/Makefile
11
@@ -9,6 +9,7 @@
12
 SHARED_LIBNAME_VERSION = $(SHARED_LIBNAME).$(VERSION)
13
 SHARED_LIBNAME_MAJOR = $(SHARED_LIBNAME).$(shell echo $(VERSION) | cut -f1 -d.)
14
 SHARED_LIBNAME_FLAGS = -shared -Wl,-soname,$(SHARED_LIBNAME_MAJOR)
15
+CFLAGS = -fPIC
16
 
17
 ifeq ($(BUILD_STATIC),yes)
18
   BUILD_RULES += lib_static
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.