File: README.Debian

package info (click to toggle)
tolua%2B%2B 1.0.93-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 1,844 kB
  • ctags: 902
  • sloc: ansic: 2,105; cpp: 326; python: 27; makefile: 16
file content (18 lines) | stat: -rw-r--r-- 890 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
With reference to the Debian Policy Chapter 10.2

The reason for compiling with the -fPIC flag, even though the binary package
will only contain a static library, is that this static library will be used
to build shared libraries (lua modules, or with a terminology common with
other applications, plug-ins).
Without instructing the compiler to use position independent code in the
static library, when the compiler will attempt linking this library to make
the shared libraries relocation will fail.

Alternatively, there is an option given upstream to build a shared library
instead of the static one.
However this is badly supported upstream, as a matter of fact this "shared"
library doesn't even have a soname.
Therefore I preferred to include a static library and compile it with position
independent code.

 -- Cesare Tirabassi <norsetto@ubuntu.com>  Sat, 25 Jul 2009 22:08:28 +0200