ide: Fixed OS X/Linux build broken by d7347cce4dfa06e7e1da817c3168b5bc7e198fbd
authorJerome St-Louis <jerome@ecere.com>
Wed, 14 May 2014 09:48:29 +0000 (05:48 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 14 May 2014 09:48:29 +0000 (05:48 -0400)
- Must now link IDE with -lm

ide/Makefile
ide/ide.epj
ide/src/debugger/debugTools.ec

index 86d3b1f..f223227 100644 (file)
@@ -224,7 +224,8 @@ ifndef STATIC_LIBRARY_TARGET
 OFLAGS += \
         -L/usr/X11R6/lib
 LIBS += \
-       $(call _L,X11)
+       $(call _L,X11) \
+       $(call _L,m)
 endif
 
 else
@@ -234,7 +235,8 @@ ifndef STATIC_LIBRARY_TARGET
 OFLAGS += \
         -L/usr/X11R6/lib
 LIBS += \
-       $(call _L,X11)
+       $(call _L,X11) \
+       $(call _L,m)
 endif
 
 endif
index 1478278..253279c 100644 (file)
@@ -20,7 +20,8 @@
                "/usr/X11R6/include"
             ],
             "Libraries" : [
-               "X11"
+               "X11",
+               "m"
             ],
             "LibraryDirs" : [
                "/usr/X11R6/lib"
@@ -34,7 +35,8 @@
                "/usr/X11R6/include"
             ],
             "Libraries" : [
-               "X11"
+               "X11",
+               "m"
             ],
             "LibraryDirs" : [
                "/usr/X11R6/lib"
             "InstallCommands" : [
                "$(if $(WINDOWS_HOST),$(call cpq,$(TARGET),\"$(BINDIR)/\"),install $(INSTALL_FLAGS) $(TARGET) $(BINDIR)/$(MODULE)$(E))"
             ]
-         },
-         "Platforms" : [
-            {
-               "Name" : "linux",
-               "Options" : {
-                  "Libraries" : [
-                     "X11"
-                  ]
-               }
-            },
-            {
-               "Name" : "apple",
-               "Options" : {
-                  "Libraries" : [
-                     "X11"
-                  ]
-               }
-            }
-         ]
+         }
       },
       {
          "Name" : "MemoryGuard",
index bad266e..fdd5439 100644 (file)
@@ -1,7 +1,5 @@
 import "ide"
 
-#include <math.h>
-
 static Map<String, uintptr> oneArgFns
 { [
    { "sqrt", (uintptr)sqrt },
@@ -23,7 +21,6 @@ static Map<String, uintptr> oneArgFns
    { "floor", (uintptr)floor },
    { "ceil", (uintptr)ceil },
    { "fabs", (uintptr)sqrt }
-
 ] };
 
 static Map<String, uintptr> twoArgFns