summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClemens Fruhwirth <clemens@endorphin.org>2008-10-10 07:31:06 +0000
committerClemens Fruhwirth <clemens@endorphin.org>2008-10-10 07:31:06 +0000
commit739d8a5b677609d4c4477667b7ced7f352aaac87 (patch)
treefaa0e87630b3ebdcb02d53d555b95114354d69cc
parentcb7f210f937bafb0f552259c23a28a037ddea4ce (diff)
downloadhaskell-739d8a5b677609d4c4477667b7ced7f352aaac87.tar.gz
Delay building libffi until package.conf is created and fix bindist
-rw-r--r--Makefile2
-rw-r--r--libffi/Makefile8
2 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7cb3ef1bb8..f1fefca0c6 100644
--- a/Makefile
+++ b/Makefile
@@ -104,7 +104,6 @@ stage1 : $(GCC_LIB_DEP) check-all
$(MAKE) -C gmp all
$(MAKE) -C utils/mkdependC boot
$(MAKE) -C utils with-bootstrapping-compiler
- $(MAKE) -C libffi all
@case '${MFLAGS}' in *-[ik]*) x_on_err=0;; *-r*[ik]*) x_on_err=0;; *) x_on_err=1;; esac; \
for i in $(SUBDIRS_BUILD); do \
echo "------------------------------------------------------------------------"; \
@@ -122,6 +121,7 @@ stage1 : $(GCC_LIB_DEP) check-all
$(MAKE) --no-print-directory -C $$i $(MFLAGS) all; \
if [ $$? -eq 0 -o $$x_on_err -eq 0 ] ; then true; else exit 1; fi; \
done
+ $(MAKE) -C libffi all
$(MAKE) -C rts boot
$(MAKE) -C rts
$(MAKE) -C libraries all
diff --git a/libffi/Makefile b/libffi/Makefile
index 989325229f..38720cc25d 100644
--- a/libffi/Makefile
+++ b/libffi/Makefile
@@ -57,7 +57,7 @@ LIBFFI_DIR := $(subst .tar.gz,,$(LIBFFI_TARBALL))
BINDIST_STAMPS = stamp.ffi
INSTALL_HEADERS += ffi.h
STATIC_LIB = libffi.a
-INSTALL_LIBS += $(STATIC_LIB)
+INSTALL_LIBS += libHSffi.a
# We have to add the GHC version to the name of our dynamic libs, because
# they will be residing in the system location along with dynamic libs from
@@ -80,8 +80,10 @@ EnableShared=no
endif
ifeq "$(BuildSharedLibs)" "YES"
-INSTALL_LIBS += $(DYNAMIC_LIBS)
-INSTALL_PROGS += $(DYNAMIC_PROGS)
+INSTALL_LIBS += $(HS_DYN_LIB_NAME)
+ifeq "$(Windows)" "YES"
+INSTALL_PROGS += $(HS_DYN_LIB_NAME).a
+endif
endif
install all :: $(INSTALL_HEADERS) $(INSTALL_LIBS) $(INSTALL_PROGS)