williamc / mupen64plus

Automatically exported from code.google.com/p/mupen64plus
0 stars 0 forks source link

OSX Compilation Broken #465

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
rjump.c contains :

    #define LOAD_EBX "call  __i686.get_pc_thunk.bx       \n"

The result is

    Undefined symbols:
      "__i686.get_pc_thunk.bx", referenced from:
          _dyna_start in rjump.o

Original issue reported on code.google.com by auria...@gmail.com on 12 Oct 2011 at 7:25

GoogleCodeExporter commented 9 years ago
Patch :

diff -r 5ba207d8a198 projects/unix/Makefile
--- projects/unix/Makefile  Thu Oct 06 11:32:09 2011 +0200
+++ projects/unix/Makefile  Wed Oct 12 17:38:04 2011 -0400
@@ -99,6 +99,9 @@
 ifeq ($(PIC), 1)
   CFLAGS += -fPIC
   LDFLAGS += -fPIC
+else
+  CFLAGS += -fno-pic
+  LDFLAGS += -fno-pic
 endif

 ifeq ($(BIG_ENDIAN), 1)

Original comment by auria...@gmail.com on 12 Oct 2011 at 9:38

GoogleCodeExporter commented 9 years ago
Added to https://bitbucket.org/ecsv/mupen64plus-core/changeset/0f44e982a6f7 
(repo will disappear after richard merged it)

Original comment by s...@narfation.org on 12 Oct 2011 at 10:05

GoogleCodeExporter commented 9 years ago
Patch is now merged

Original comment by s...@narfation.org on 12 Nov 2011 at 7:09