Menu

#4 Add configure.in test for 32-bit flags

open
nobody
None
5
2010-01-20
2010-01-20
Norman Gray
No

I've attached a patch to 0.6.7 configure.in which adds a test for the compiler flag
necessary to force scsh to be built as a 32-bit executable,
adding -m32 when necessary. This is specific to gcc; other suitable flags
should be added here for other compilers.

This relates to bug 2890936, and follows advice on the scsh-users list (see
<http://lists.apple.com/archives/Unix-porting/2010/Jan/msg00000.html> and
following thread), it's clear that this arises because OS X 10.6 defaults
to building 64-bit executables.

Discussion

  • Norman Gray

    Norman Gray - 2010-01-20

    Patch against 0.6.7 configure.in

     
  • Norman Gray

    Norman Gray - 2010-01-20

    Doh: the scsh-users credit URL should be http://article.gmane.org/gmane.lisp.scheme.scsh/7760

     
  • Norman Gray

    Norman Gray - 2010-01-21

    On reflection, the test in the patch should be

    #if LONG_MAX > 2147483647L

    rather than

    #if LONG_BIT > 32

    since the latter, though listed in the POSIX spec, is noted as an extension to the C standard. LONG_MAX is listed in (ANSI) K&R, and really should be portable.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.