[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] Compilation fixes for FreeType on BeOS

From: Christian Biesinger
Subject: [ft-devel] Compilation fixes for FreeType on BeOS
Date: Fri, 30 Sep 2005 04:06:05 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20050923 SeaMonkey/1.1a

here are some patches to improve the compilation on BeOS.

The first one (freetype-1.diff) to builds/beos/ fixes that Makefile so that it works; it is required because otherwise the path separator is defined too late. It is a diff against freetype 2.1.10.

Current CVS HEAD seems to have changed the structure of all this code so that this patch doesn't seem to be required anymore (but I didn't try building it on beos).

The second one (freetype-2.diff; also against 2.1.10) is to allow building a shared library using ./configure && make on BeOS. Without the -no-undefined, libtool refuses to build a shared library because BeOS doesn't seem to support undefined symbols in shared libraries. This doesn't seem harmful to the other platforms, because symbols that aren't defined are probably not intended (right?).

This is probably also needed for shared libraries on a few other systems.

The third one (freetype-3.diff) is the same as freetype-2.diff but against HEAD.

Would be great if you could apply the patches.

--- freetype-2.1.10/builds/beos/    2005-09-30 03:40:15.000000000 
+++ freetype-2.1.10/builds/beos/ 2005-09-30 03:40:22.000000000 +0200
@@ -8,12 +8,12 @@
 # This file is part of the FreeType project, and may only be used, modified,
 # and distributed under the terms of the FreeType project license,
 # LICENSE.TXT.  By continuing to use, modify, or distribute this file you
 # indicate that you have read the license and understand and accept it
 # fully.
-include $(TOP_DIR)/builds/compiler/
 include $(TOP_DIR)/builds/beos/
+include $(TOP_DIR)/builds/compiler/
 include $(TOP_DIR)/builds/
 # EOF
diff -pr -U 6 freetype-2.1.10-orig/builds/unix/ 
--- freetype-2.1.10-orig/builds/unix/ 2003-11-09 09:37:13.000000000 
+++ freetype-2.1.10/builds/unix/      2005-09-30 03:43:47.000000000 
@@ -91,10 +91,10 @@ LDFLAGS := @LDFLAGS@
 # Library linking
 LINK_LIBRARY = $(LIBTOOL) --mode=link $(CCraw) -o $@ $(OBJECTS_LIST) \
                           -rpath $(libdir) -version-info $(version_info) \
-                          $(LDFLAGS)
+                          -no-undefined $(LDFLAGS)
 # EOF
Index: lib/arch/unix/
RCS file: /cvsroot/freetype/freetype/lib/arch/unix/,v
retrieving revision 1.36
diff -p -u -6 -r1.36
--- lib/arch/unix/   29 Oct 2001 09:44:12 -0000      1.36
+++ lib/arch/unix/   30 Sep 2005 01:56:10 -0000
@@ -204,12 +204,13 @@ freetype.lo: $(SRC_S) $(SRC_M)
                                         -DTT_MAKE_OPTION_SINGLE_OBJECT \
                                         $(SRC_S) $(LIB_FILES)
        $(LIBTOOL) --mode=link $(CC) -o $(LIB_FILES) \
                                -rpath $(libdir) \
+                               -no-undefined \
                                -version-info $(version_info) $(FT_LIBS)
        $(MKINSTALLDIRS) $(libdir) $(includedir)/freetype
        $(LIBTOOL) --mode=install $(INSTALL) $(libdir)
        -for P in $(HEADERS) ; do \

reply via email to

[Prev in Thread] Current Thread [Next in Thread]