[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#264565: ocaml-mad: FTBFS on amd64: '-fPIC' missing in CFLAGS



Package: ocaml-mad
Severity: normal
Tags: patch

When building 'ocaml-mad' on amd64 I get the following error:

cc -shared         \
			-o dllmad_stubs.so  mad_stubs.o -lmad
/usr/bin/ld: mad_stubs.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
mad_stubs.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [dllmad_stubs.so] Error 1
make[3]: Leaving directory `/ocaml-mad-0.1.2/src'

With the attached patch 'ocaml-mad' can be compiled on amd64.

Regards
Andreas Jochens

diff -urN ../tmp-orig/ocaml-mad-0.1.2/src/Makefile.in ./src/Makefile.in
--- ../tmp-orig/ocaml-mad-0.1.2/src/Makefile.in	2004-06-30 01:22:15.000000000 +0200
+++ ./src/Makefile.in	2004-08-09 14:16:37.743296336 +0200
@@ -30,7 +30,7 @@
 OCAMLLDFLAGS =
 LIBS = unix
 CLIBS = mad
-CFLAGS = -g -O2
+CFLAGS = -fPIC -g -O2
 OCAMLBCFLAGS = -g
 OCAMLBLDFLAGS = -g
 




Reply to: