Gitweb links:

...log 
http://git.netsurf-browser.org/buildsystem.git/shortlog/5f994a6f7580e5d064b4b9e9578ad51a217c6727
...commit 
http://git.netsurf-browser.org/buildsystem.git/commit/5f994a6f7580e5d064b4b9e9578ad51a217c6727
...tree 
http://git.netsurf-browser.org/buildsystem.git/tree/5f994a6f7580e5d064b4b9e9578ad51a217c6727

The branch, ashmew2/kolibri has been created
        at  5f994a6f7580e5d064b4b9e9578ad51a217c6727 (commit)

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/buildsystem.git/commit/?id=5f994a6f7580e5d064b4b9e9578ad51a217c6727
commit 5f994a6f7580e5d064b4b9e9578ad51a217c6727
Author: Ashish Gupta <[email protected]>
Commit: Ashish Gupta <[email protected]>

    Add support for Cross compiling for KolibriOS from Linux
    
    Patch Makefile.tools to add build time parameters required for kolibrios

diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools
index 86fac4c..1250c56 100644
--- a/makefiles/Makefile.tools
+++ b/makefiles/Makefile.tools
@@ -140,6 +140,11 @@ else
     CC__ := $(realpath $(toolpath_))
     toolpath_ := $(dir $(CC__))
     toolprefix_ := $(subst :,/,$(dir $(subst -,/,$(subst /,:,$(CC__)))))
+
+    ifeq ($(HOST),kolibrios)
+       toolprefix_ := $(subst kos32/,kos32,$(toolprefix_))
+    endif
+
     ifeq ($(origin AR),default)
       AR__ := $(toolprefix_)-ar
     endif
@@ -242,6 +247,25 @@ else
 
     PREFIX ?= $(GCCSDK_INSTALL_ENV)
   endif
+
+  ifeq ($(HOST),kolibrios)
+    #Cross compiling for KolibriOS (x86 only for now)
+    #expat was added for libdom.
+    #SDL was added for libnsfb.
+    #Both of them should probably be moved to respective library Makefiles.
+    CFLAGS := $(CFLAGS) -c -Wno-error=undef -Wno-error=char-subscripts 
-Wno-error=pedantic -U__STRICT_ANSI__ -I 
$(HOME)/kolibrios/contrib/sdk/sources/newlib/libc/include -I 
$(HOME)/kolibrios/contrib/sdk/sources/newlib/libc/include/machine -I 
$(HOME)/kolibrios/contrib/sdk/sources/SDL-1.2.2/include 
-I$(HOME)/kolibrios/contrib/sdk/sources/expat/lib \
+            -std=c99 -g -U_Win32 -U_WIN32 -U__MINGW32__ \
+             -U__BSD_VISIBLE -D_BSD_SOURCE -D_DEFAULT_SOURCE 
-D_XOPEN_SOURCE=700 \
+            -D_POSIX_C_SOURCE=200809L -D_NETBSD_SOURCE
+
+    CXXFLAGS := $(CXXFLAGS) -U__STRICT_ANSI__ 
-I$(GCCSDK_INSTALL_ENV)/newlib/libc/include
+
+    LDFLAGS := $(LDFLAGS) -T$(GCCSDK_INSTALL_ENV)/newlib/libc/static.lds 
-nostdlib -static \
+               -image-base 0 -L/home/autobuild/tools/win32/mingw32/lib -lgcc \
+              /home/autobuild/tools/win32/lib/libz.a 
/home/autobuild/tools/win32/lib/libdll.a \
+              /home/autobuild/tools/win32/lib/libapp.a 
/home/autobuild/tools/win32/lib/libc.dll.a
+
+  endif
 endif
 
 # Default prefix


-----------------------------------------------------------------------


-- 
NetSurf Project build system

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to