21 lines
627 B
Plaintext
21 lines
627 B
Plaintext
$OpenBSD: patch-src_Makefile,v 1.2 2007/02/18 07:15:06 pvalchev Exp $
|
|
--- src/Makefile.orig Thu May 15 08:17:53 2003
|
|
+++ src/Makefile Sat Feb 17 23:12:22 2007
|
|
@@ -38,14 +38,14 @@ CFLAGS = -g $(GTKCFLAGS)
|
|
MLLINK += -cclib -lcamlrund
|
|
MLFLAGS = -g
|
|
else
|
|
-CFLAGS = -O -DGTK_NO_CHECK_CASTS -DGTK_DISABLE_COMPAT_H $(GTKCFLAGS)
|
|
+CFLAGS := -DGTK_NO_CHECK_CASTS -DGTK_DISABLE_COMPAT_H $(GTKCFLAGS) $(CFLAGS)
|
|
endif
|
|
|
|
THFLAGS = -thread
|
|
THLINK = unix.cma threads.cma
|
|
|
|
ifdef USE_CC
|
|
-CCOMPILER = $(CC) -c -I$(LIBDIR) $(CFLAGS)
|
|
+CCOMPILER = $(CC) -c -I$(LIBDIR) $(CFLAGS) -fPIC
|
|
else
|
|
CCOMPILER = $(CAMLC) -c -ccopt "$(CFLAGS)"
|
|
endif
|