UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Submit Patch #4542 Small fixes for building on MacOSX
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Submit Patch
  • Category
    Scripts (.ufo)
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/patches/415 Item 415] imported from sourceforge.net tracker on 2013-01-28 20:39:33

Hi all,

Please add the following fixes. The first one makes sure we get a sane filename. I'm not sure why it isn't set in the Makefile yet, but this made it work for me. The second one is to add -headerpad_max_install_names to the linking. I do this because I was told so by the package creation process :P It "Add[s] to the header padding enough space to allow changing all dynamic shared library paths recorded in the output file to be changed to MAXPATHLEN in length." No idea why it's needed, but after I added it, it didn't complain any more.

Index: src/ports/macosx/installer/Makefile
===================================================================
--- src/ports/macosx/installer/Makefile (revision 24000)
+++ src/ports/macosx/installer/Makefile (working copy)
@@ -8,6 +8,7 @@
#get the version of ufo
VERSION_UC=$(shell grep UFO_VERSION $(ROOTDIR)/src/common/common.h | sed -e 's/.*UFO_VERSION\s*\(.*\)/\1/' | sed -e 's/\"//g')
VERSION_LC=$(shell echo $(VERSION_UC) | sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;')
+TARGET_CPU=`arch`

PACKAGE_NAME=ufoai-$(VERSION_LC)-macosx-$(TARGET_CPU)

Index: configure.ac
===================================================================
--- configure.ac (revision 24000)
+++ configure.ac (working copy)
@@ -139,7 +139,7 @@
then
AC_SUBST([TARGET_OS],[darwin])
CFLAGS="$CFLAGS -F$with_opengl_framework"
- LDFLAGS="$LDFLAGS -framework IOKit -framework Foundation -framework OpenGL -framework Cocoa"
+ LDFLAGS="$LDFLAGS -framework IOKit -framework Foundation -framework OpenGL -framework Cocoa -headerpad_max_install_names"
SERVER_LIBS="$SERVER_LIBS"

# fix this darn SDL stuff....
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif