Bug 8484 - use %configure instead of ./configure
Summary: use %configure instead of ./configure
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: ncurses
Version: 6.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-01-15 05:02 UTC by andrewem
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2000-01-17 13:13:29 UTC
Embargoed:


Attachments (Terms of Use)

Description andrewem 2000-01-15 05:02:19 UTC
The spec file does something like
  CFLAGS="$RPM_OPT_FLAGS -DPURE_TERMINFO" ./configure --prefix=/usr ...
This is a pain when it comes to porting to newer architectures when the
package has outdated config.sub and config.guess scripts (very common).

A simple change to
  CFLAGS="%{optflags} -DPURE_TERMINFO"
  %define optflags $CFLAGS
  %configure ...
  make
Note that the exact syntax is important in order to avoid a recursive
macro.

Comment 1 Bernhard Rosenkraenzer 2000-01-17 13:13:59 UTC
done.


Note You need to log in before you can comment on or make changes to this bug.