Commit dd35ad56 authored by Axel Auweter's avatar Axel Auweter
Browse files

MacOS compile fixes:

 - don't try to link against non-existant (and deprecated) libRt
 - strip inotify stuff from FilePusher for MacOS builds
 - Fix istream::read and istream::seekg calls (they won't return NULL on error)
parent 1e617e52
......@@ -192,10 +192,13 @@ $(DCDBDEPSPATH)/.prerequesites: $(DCDBDEPSPATH)/.extract-distfiles
if [ "$(X)" == "Darwin" ]; then \
echo "Fixing OpenIPMI for Mac OS..."; \
cd $(DCDBDEPSPATH)/$(O) && find . -name 'Makefile*' | xargs sed -i '' -e 's/Map/map/g'; \
LRT=""; \
else \
LRT="-lrt"; \
fi; \
cd $(DCDBDEPSPATH)/$(O) && aclocal && automake; \
cd $(DCDBDEPSPATH)/$(O) && ./configure --prefix=$(DCDBDEPLOYPATH) --with-swig=no --with-perl=no --with-python=no \
CC="$(CC)" CFLAGS="$(CFLAGS) -lrt" \
CC="$(CC)" CFLAGS="$(CFLAGS) $(LRT)" \
$(AUTOCONF_CROSS_FLAGS); \
cd $(DCDBDEPSPATH)/$(O) && make -j $(MAKETHREADS) && make install && touch $(DCDBDEPSPATH)/$(O)/.installed; \
else \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment