Opened 5 years ago

Closed 5 years ago

Last modified 11 months ago

#10096 closed feature request (fixed)

Top-level ./configure should accept and propagate --with-curses-{includes,libraries} to libraries

Reported by: PHO Owned by:
Priority: normal Milestone: 7.10.1
Component: Build System (make) Version: 7.11
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: #7472 Differential Rev(s): Phab:D665
Wiki Page:

Description

If curses is installed into some non-standard path, we currently have to say something like the following in mk/build.mk:

libraries/terminfo_CONFIGURE_OPTS += \
    --configure-option=--with-curses-includes=/somewhere/include \
    --configure-option=--with-curses-libraries=/somewhere/lib

This is because the top-level configure does not accept nor propagate --with-curses-{includes,libraries} to libraries while it does so for iconv, gmp and libffi. It would be nice if curses were handled in the same manner.

I will soon submit a patch for this.

Change History (5)

comment:1 Changed 5 years ago by PHO

Differential Rev(s): Phab:D665
Status: newpatch

comment:2 Changed 5 years ago by Austin Seipp <austin@…>

In bbb57a6b3a31c22a5a24fa4b92abbe13a6736ad8/ghc:

Make top-level "configure" accept and propagate --with-curses-{includes,libraries} to libraries

Summary:
If curses is installed into some non-standard path, we currently have
to say something like the following in mk/build.mk:

  libraries/terminfo_CONFIGURE_OPTS += \
      --configure-option=--with-curses-includes=/somewhere/include \
      --configure-option=--with-curses-libraries=/somewhere/lib

This is because the top-level configure does not accept nor propagate
--with-curses-{includes,libraries} to libraries while it does so for
iconv, gmp and libffi. It would be nice if curses were handled in the
same manner.

Test Plan: Install curses into some non-standard path. Then run the top-level "configure" script with options "--with-curses-includes=/path/to/curses/include" and "--with-curses-libraries=/path/to/curses/lib".

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, PHO

Differential Revision: https://phabricator.haskell.org/D665

GHC Trac Issues: #10096

comment:3 Changed 5 years ago by thoughtpolice

Milestone: 7.10.1
Status: patchmerge

comment:4 Changed 5 years ago by thoughtpolice

Resolution: fixed
Status: mergeclosed

Merged to ghc-7.10 (via d9e24f4eb1f214a59f1d7d8a2535b1b255a45a51).

comment:5 Changed 11 months ago by bgamari

Component: Build SystemBuild System (make)

The new Hadrian build system has been merged. Relabeling the tickets concerning the legacy make build system to prevent confusion.

Note: See TracTickets for help on using tickets.