Hi List!

Attached is a patch we use in Gentoo (well, the only patch) that allows 
compilation on on ppc-macos (Darwin). I don't have this platform myself, but 
our ppc-macos users seem to need it, so I'm submitting it for upstream 
inclusion.

Thanks!

-- 
Roy Marples <uberl...@gentoo.org>
Gentoo Linux Developer
--- openvpn-2.0.4/plugin/down-root/Makefile.orig	2005-11-02 20:25:40.000000000 +0100
+++ openvpn-2.0.4/plugin/down-root/Makefile	2005-11-02 20:31:53.000000000 +0100
@@ -7,11 +7,22 @@

 CC_FLAGS=-O2 -Wall

+ifeq ($(USERLAND),Darwin)
+	LIBNAME=dylib
+else
+	LIBNAME=so
+endif
+
+lib : down-root.$(LIBNAME)
+
 down-root.so : down-root.o
 	gcc ${CC_FLAGS} -fPIC -shared -Wl,-soname,openvpn-down-root.so -o openvpn-down-root.so down-root.o -lc

+down-root.dylib : down-root.o
+	gcc ${CC_FLAGS} -dynamiclib -install_name openvpn-down-root.dylib -o openvpn-down-root.dylib down-root.o -lc
+
 down-root.o : down-root.c
 	gcc ${CC_FLAGS} -fPIC -c ${INCLUDE} down-root.c

 clean :
-	rm -f *.o *.so
+	rm -f *.o *.so *.dylib

Reply via email to