Bug 34438 - PORT UPDATE: devel/mingw-gcc
Summary: PORT UPDATE: devel/mingw-gcc
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-30 08:50 UTC by Michal P.
Modified: 2002-10-22 23:40 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (515 bytes, patch)
2002-01-30 08:50 UTC, Michal P.
no flags Details | Diff
file.diff (28.10 KB, patch)
2002-01-30 08:50 UTC, Michal P.
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michal P. 2002-01-30 08:50:03 UTC
	     Thomas Russo reported, that current mingw-gcc doesn't build libg2c.
	     He provided a patch. I tested it, it compiles o.k. and gives
	     good results, so here's the PR.

Fix: Please diff devel/mingw-gcc/pkg-plist with this:

And place lines below in devel/mingw-gcc/files/patch-ac:
Comment 1 russo 2002-01-31 15:21:01 UTC
The patch I submitted to Michal removes the broken configure test that
causes libf2c to fail to build with a cross-compiler.  This is
apparently a known problem with the version of libf2c in gcc 2.95.x.
They tried to get the size of fortran integers and long integers by
peeking at the header files generated during the GCC build --- but
that only works if GCC is being built to run on the same platform
that libf2c is being built for.

I removed the offending test in configure.in and configure, and
kludged g2c.hin so it doesn't need those tests.  This kludge will
only work for the case where my substitions are the right ones --- i.e.
where @F2C_INTEGER@ would be probed to be "int" and @F2C_LONGINT@ would
be "long long int."  That happens to be the case for the cross-compiler
built by the mingw port.

-- 
Tom Russo   KM5VY    QRPL #1592   K2#398    http://www.swcp.com/~russo/
Tijeras, NM DM64ux   SOC #236 ICQ#97201722  http://www.qsl.net/~km5vy/
  "Well, I could go on and on and on, but time's a-wastin', and evil's out
  there, making hand-crafted mischief for the swap meet of villainy." 
-The Tick
Comment 2 dannyboy freebsd_committer freebsd_triage 2002-10-22 23:40:20 UTC
State Changed
From-To: open->closed

Committed, thanks.