File: 03_compile_examples_with_PIC.patch

package info (click to toggle)
luabind 0.9.1%2Bgit20150823%2Bdfsg-3.2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,708 kB
  • sloc: cpp: 14,884; makefile: 204; sh: 41; python: 38; ansic: 11
file content (35 lines) | stat: -rw-r--r-- 1,118 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Author: Roberto C. Sanchez <roberto@connexer.com>
Description: Use -fPIC in example Makefiles (Closes: #819454)
--- luabind.git.orig/examples/glut/Makefile
+++ luabind.git/examples/glut/Makefile
@@ -6,7 +6,7 @@
 
 glutbind_test: glut_bind.cpp
 	$(CXX) glut_bind.cpp -o glut_bind $(CPPFLAGS) \
-	-I/usr/include/lua5.1 -I/usr/include/boost \
+	-I/usr/include/lua5.1 -I/usr/include/boost -fPIC \
 	-llua5.1 -lluabind -lGL -lGLU -lglut
 
 clean:
--- luabind.git.orig/examples/hello_world/Makefile
+++ luabind.git/examples/hello_world/Makefile
@@ -6,7 +6,7 @@
 
 helloworld_test: hello_world.cpp
 	$(CXX) -shared hello_world.cpp -o hello_world.so $(CPPFLAGS) \
-	-I/usr/include/lua5.1 -I/usr/include/boost \
+	-I/usr/include/lua5.1 -I/usr/include/boost -fPIC \
 	-llua5.1 -lluabind
 
 clean:
--- luabind.git.orig/examples/regexp/Makefile
+++ luabind.git/examples/regexp/Makefile
@@ -6,7 +6,7 @@
 
 regexp_test: regex_wrap.cpp
 	$(CXX) regex_wrap.cpp -o regex_wrap $(CPPFLAGS) \
-	-I/usr/include/lua5.1 -I/usr/include/boost \
+	-I/usr/include/lua5.1 -I/usr/include/boost -fPIC \
 	-llua5.1 -lluabind -lboost_regex
 
 clean: