diff options
author | Stefan Gartner <stefang@aon.at> | 2008-11-24 17:15:05 +0300 |
---|---|---|
committer | Stefan Gartner <stefang@aon.at> | 2008-11-24 17:15:05 +0300 |
commit | f1474648d318808664ac37c77524b3171a65456a (patch) | |
tree | 36be28cf29275d0582202658d14bcd083be3f578 /source/nan_link.mk | |
parent | 1a28bf797e4103926bf181389bb68a8c97fccaa8 (diff) |
patch #8583: Add support for gcc on irix
to compile blender with gcc on IRIX, IRIX_USE_GCC needs to be set to true in
user-def.mk.
Other changes related to irix:
* compile solid from extern/
* don't build plugins (yet) with "make release" when using gcc (the shell
script used assumes MIPSpro is installed)
* use statvfs instead of statfs on irix, like done on solaris
* use external libs from $(LCGDIR) instead of /usr/freeware
* use glew header files from $(LCGDIR)/glew instead of the ones installed on
the system (this applies to other platforms as well)
* ffmpeg support currently is disabled on irix
Diffstat (limited to 'source/nan_link.mk')
-rw-r--r-- | source/nan_link.mk | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/source/nan_link.mk b/source/nan_link.mk index 8dda3b8c2df..186fe07e09a 100644 --- a/source/nan_link.mk +++ b/source/nan_link.mk @@ -72,11 +72,19 @@ ifeq ($(OS),freebsd) endif ifeq ($(OS),irix) - LDFLAGS += -mips3 - LLIBS = -lmovieGL -lGLU -lGL -lXmu -lXext -lX11 -lc -lm -ldmedia - LLIBS += -lcl -laudio -ldb -lCio -lz - LLIBS += -lpthread - LLIBS += -woff 84,171 + ifeq ($(IRIX_USE_GCC), true) + LDFLAGS += -mabi=n32 -mips4 + DBG_LDFLAGS += -LD_LAYOUT:lgot_buffer=40 + else + LDFLAGS += -n32 -mips3 + LDFLAGS += -woff 84,171 + endif + LLIBS = -lmovieGL -lGLU -lGL -lXmu -lXext -lXi -lX11 -lc -lm -ldmedia + LLIBS += -lcl -laudio + ifneq ($(IRIX_USE_GCC), true) + LLIBS += -lCio -ldb + endif + LLIBS += -lz -lpthread DYNLDFLAGS = -shared $(LDFLAGS) endif @@ -90,7 +98,7 @@ ifeq ($(OS),linux) ifeq ($(CPU),$(findstring $(CPU), "i386 x86_64 ia64 parisc64 powerpc sparc64")) COMMENT = "MESA 3.1" LLIBS = -L$(NAN_MESA)/lib -L/usr/X11R6/lib -lXmu -lXext -lX11 -lXi - LLIBS += -lutil -lc -lm -ldl -lpthread + LLIBS += -lutil -lc -lm -ldl -lpthread # LLIBS += -L$(NAN_ODE)/lib -lode LOPTS = -export-dynamic DADD = -lGL -lGLU |