Bug#264561: ocaml-shout: FTBFS on amd64: '-fPIC' missing in CFLAGS
Package: ocaml-shout
Severity: normal
Tags: patch
When building 'ocaml-shout' on amd64 I get the following error:
/usr/bin/ld: shout_stubs.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
shout_stubs.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [dllshout_stubs.so] Error 1
make[3]: Leaving directory `/ocaml-shout-0.1.1/src'
With the attached patch 'ocaml-shout' can be compiled on amd64.
Regards
Andreas Jochens
diff -urN ../tmp-orig/ocaml-shout-0.1.1/src/Makefile.in ./src/Makefile.in
--- ../tmp-orig/ocaml-shout-0.1.1/src/Makefile.in 2004-06-30 01:22:16.000000000 +0200
+++ ./src/Makefile.in 2004-08-09 14:13:45.195353861 +0200
@@ -29,7 +29,7 @@
LIBINSTALL_FILES = $(wildcard *.mli *.cmi *.cma *.cmxa *.a *.so)
OCAMLLDFLAGS =
CLIBS = shout
-CFLAGS = -g -O2 -Wall -Wno-unused
+CFLAGS = -fPIC -g -O2 -Wall -Wno-unused
OCAMLBCFLAGS = -g
OCAMLBLDFLAGS = -g
Reply to: