Bug 201252 - games/darkplaces: fix build on mips and other archs
Summary: games/darkplaces: fix build on mips and other archs
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Max Brazhnikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-01 14:58 UTC by Dmitry Marakasov
Modified: 2015-07-15 20:35 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (makc)


Attachments
Patch (1.50 KB, patch)
2015-07-01 14:58 UTC, Dmitry Marakasov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov freebsd_committer 2015-07-01 14:58:57 UTC
Created attachment 158223 [details]
Patch

On mips and other non-x86 archs:

cc1: error: unrecognized command line option "-msse2"

It's marked broken on some of them, but instead just sse should be disabled. Fix it in a most correct way, with following:

- Add SSE option on i386 and amd64
- Enable it by default on amd64
- Based on it, disable or enable SSE support completely

I can confirm that it fixes build at least on mips.

While here, silence post-patch
Comment 1 commit-hook freebsd_committer 2015-07-15 20:35:15 UTC
A commit references this bug:

Author: amdmi3
Date: Wed Jul 15 20:34:29 UTC 2015
New revision: 392211
URL: https://svnweb.freebsd.org/changeset/ports/392211

Log:
  - Fix build on non-x86
  - Add SSE support

  PR:		201252
  Submitted by:	amdmi3
  Approved by:	maintainer timeout (makc, 2 weeks)

Changes:
  head/games/darkplaces/Makefile