Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
L
libSDL
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • PocketInsanity
  • libSDL
  • Repository

Switch branch/tag
  • libsdl
  • acinclude
  • ax_gcc_x86_cpuid.m4.htm
Find file
BlameHistoryPermalink
  • Sam Lantinga's avatar
    Greg Jandl to SDL · b3dd448c
    Sam Lantinga authored Jan 19, 2011
    I did some digging, and I think I've found a better solution. By
    including some additional .m4 macros in the acinclude directory
    (http://www.gnu.org/software/autoconf-archive/ax_check_compiler_flags.html,
    http://www.gnu.org/software/autoconf-archive/ax_gcc_archflag.html and
    http://www.gnu.org/software/autoconf-archive/ax_gcc_x86_cpuid.html)
    then using the patch below (same as previous patch + one line change
    to configure.in), SDL will build correctly out of the box.
    
    The arch can then be overridden by --with-gcc-arch=<arch> (most will
    probably want to build with i686 there for general distribution) or
    --without-gcc-arch, to disable setting the arch all together.
    
    On my Atom netbook, I get -march=PentiumPro by default, which works
    great, as does --with-gcc-arch=i686.
    b3dd448c
ax_gcc_x86_cpuid.m4.htm 3.24 KB
EditWeb IDE

Replace ax_gcc_x86_cpuid.m4.htm

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.