git.annexia.org
/
perl4caml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compiler flags so it compiles OK on all architectures.
[perl4caml.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
9be234b
..
a92c178
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,6
+1,6
@@
# Interface to Perl from OCaml.
# Copyright (C) 2003 Merjis Ltd.
# Interface to Perl from OCaml.
# Copyright (C) 2003 Merjis Ltd.
-# $Id: Makefile,v 1.2
7 2004-12-11 13:38:32
rich Exp $
+# $Id: Makefile,v 1.2
8 2004-12-11 15:40:08
rich Exp $
include Makefile.config
include Makefile.config
@@
-16,8
+16,10
@@
OCAMLOPTINCS := $(OCAMLCINCS)
OCAMLCFLAGS := -w s -g $(OCAMLCINCS)
OCAMLOPTFLAGS := -w s $(OCAMLOPTINCS)
OCAMLCFLAGS := -w s -g $(OCAMLCINCS)
OCAMLOPTFLAGS := -w s $(OCAMLOPTINCS)
+PERLCFLAGS := $(shell perl -e 'use Config; print $$Config{ccflags};')
+
CC := gcc
CC := gcc
-CFLAGS := -fPIC -Wall -Wno-unused -I$(PERLINCDIR) $(EXTRA_CFLAGS)
+CFLAGS := -fPIC -Wall -Wno-unused -I$(PERLINCDIR) $(
PERLCFLAGS) $(
EXTRA_CFLAGS)
LIBPERL := $(shell perl -MExtUtils::Embed -e ldopts)
LIBPERL := $(shell perl -MExtUtils::Embed -e ldopts)