summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.osx3
-rw-r--r--src/ivy.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/src/Makefile.osx b/src/Makefile.osx
index 4043935..5755b3b 100644
--- a/src/Makefile.osx
+++ b/src/Makefile.osx
@@ -136,6 +136,9 @@ installbins: tools
test -d $(DESTDIR)$(PREFIX)/bin || mkdir -p $(DESTDIR)$(PREFIX)/bin
install -m755 $(TOOLS_DIR)/ivyprobe $(DESTDIR)$(PREFIX)/bin
install -m755 $(TOOLS_DIR)/ivyperf $(DESTDIR)$(PREFIX)/bin
+ install_name_tool -change libivy.dylib $(DESTDIR)$(PREFIX)/lib/libivy.dylib $(DESTDIR)$(PREFIX)/bin/ivyprobe
+ install_name_tool -change libivy.dylib $(DESTDIR)$(PREFIX)/lib/libivy.dylib $(DESTDIR)$(PREFIX)/bin/ivyperf
+
tools: static-libs
@(cd $(TOOLS_DIR) && $(MAKE) -f Makefile.osx)
diff --git a/src/ivy.c b/src/ivy.c
index 80f9bf6..7964200 100644
--- a/src/ivy.c
+++ b/src/ivy.c
@@ -55,7 +55,11 @@
#define ARG_START "\002"
#define ARG_END "\003"
+#ifdef __APPLE__
#define DEFAULT_DOMAIN 127.0.0.1
+#else
+#define DEFAULT_DOMAIN 127.255.255.255
+#endif
/* stringification et concatenation du domaine et du port en 2 temps :
* Obligatoire puisque la substitution de domain, et de bus n'est pas