Commit 9468dc9673942079239fbfeda31bdde4506da86c

henry 2001-12-11T01:26:43

Added a note about the linker problem when building freetype

diff --git a/mac/README.txt b/mac/README.txt
index ac7ea35..f566c29 100644
--- a/mac/README.txt
+++ b/mac/README.txt
@@ -11,6 +11,27 @@ For instructions on using OpenGL go to www.opengl.org
 
 Please contact me if you have any suggestions, feature requests, or problems.
 
+Note: Problems building freetype on MAC OSX
+
+When using make to build freetype you may come across the following error...
+
+ld: -undefined error must be used when -twolevel_namespace is in effect
+/usr/bin/libtool: internal link edit command failed
+make: *** [/freetype/objs/libfreetype.la] Error 1
+
+This is because of a change in the way 10.1 runtime enviroment handles shared libraries. See http://developer.apple.com/techpubs/macosx/ReleaseNotes/TwoLevelNamespaces.html for more details.
+
+This problem will go away when freetype is upgraded to use the latest version of libtool. In the meantime try this hack:)
+
+run make setup and make as per usual
+if/when it barfs with the above error message edit the file builds/unix/libtool
+search for the line ...
+
+allow_undefined_flag="-undefined suppress"
+
+and comment it out. Stick a # in front.
+type make again and bobs your aunty's live in lover. Then continue as per the instruction that came with freetype.
+
 Henry Maddocks
 henryj@paradise.net.nz
 http://homepages.paradise.net.nz/henryj/