Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jberryman
GHC
Commits
88223168
Commit
88223168
authored
May 25, 2010
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add configure flags for the location of GMP includes/library; fixes #4022
parent
84e10e6c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
configure.ac
configure.ac
+16
-0
mk/config.mk.in
mk/config.mk.in
+2
-0
rules/build-package-data.mk
rules/build-package-data.mk
+8
-0
No files found.
configure.ac
View file @
88223168
...
...
@@ -194,6 +194,22 @@ AC_ARG_WITH([iconv-libraries],
AC_SUBST(ICONV_INCLUDE_DIRS)
AC_SUBST(ICONV_LIB_DIRS)
dnl Allow to specify gmp options to the toplevel configure script
dnl so they can be properly passed to sub-builds.
AC_ARG_WITH([gmp-includes],
[AC_HELP_STRING([--with-gmp-includes],
[directory containing gmp.h])],
[GMP_INCLUDE_DIRS=$withval])
AC_ARG_WITH([gmp-libraries],
[AC_HELP_STRING([--with-gmp-libraries],
[directory containing gmp library])],
[GMP_LIB_DIRS=$withval])
AC_SUBST(GMP_INCLUDE_DIRS)
AC_SUBST(GMP_LIB_DIRS)
dnl--------------------------------------------------------------------
dnl * Choose host(/target/build) platform
dnl--------------------------------------------------------------------
...
...
mk/config.mk.in
View file @
88223168
...
...
@@ -785,3 +785,5 @@ CONFIGURE_ARGS = @CONFIGURE_ARGS@
ICONV_INCLUDE_DIRS
=
@ICONV_INCLUDE_DIRS@
ICONV_LIB_DIRS
=
@ICONV_LIB_DIRS@
GMP_INCLUDE_DIRS
=
@GMP_INCLUDE_DIRS@
GMP_LIB_DIRS
=
@GMP_LIB_DIRS@
rules/build-package-data.mk
View file @
88223168
...
...
@@ -42,6 +42,14 @@ ifneq "$$(ICONV_LIB_DIRS)" ""
$1_$2_CONFIGURE_OPTS
+=
--configure-option
=
--with-iconv-libraries
=
"
$
$(ICONV_LIB_DIRS)
"
endif
ifneq
"$$(GMP_INCLUDE_DIRS)" ""
$1_$2_CONFIGURE_OPTS
+=
--configure-option
=
--with-gmp-includes
=
"
$
$(GMP_INCLUDE_DIRS)
"
endif
ifneq
"$$(GMP_LIB_DIRS)" ""
$1_$2_CONFIGURE_OPTS
+=
--configure-option
=
--with-gmp-libraries
=
"
$
$(GMP_LIB_DIRS)
"
endif
ifeq
"$3" "0"
$1_$2_CONFIGURE_OPTS
+=
$
$(BOOT_PKG_CONSTRAINTS)
endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment