Permalink
Browse files

Always compile with -fPIC

Helps on 64-bit machines, does not hurt on 32-bit machines
  • Loading branch information...
1 parent 6be5acb commit 99b93f7c0ff524e85350e0ff382de01fa6592051 @squadette committed May 4, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 Makefile
  2. +1 −1 README
View
@@ -9,7 +9,7 @@ CC=g++
INCL=
LDFLAGS=
LIBS=-lgcrypt -lpthread
-CFLAGS=-Wall -shared
+CFLAGS=-Wall -shared -fPIC -DPIC
PLUGIN=radiusplugin.so
OBJECTS=\
RadiusClass/RadiusAttribute.o \
View
2 README 100755 → 100644
@@ -186,7 +186,7 @@ TROUBLESHOOTING
in the config file of the plugin to a existing dummy directory.
- Compiling fails on Solaris 10:
- - add following options: -lsocket -lnsl -lresolv -fPIC -DPIC
+ - add following options: -lsocket -lnsl -lresolv
- Values for BytesIn/BytesOut are 0 in the accounting log of the RADIUS server:
- Make sure that the status file of OpenVPN exist and the plugin can read it.

0 comments on commit 99b93f7

Please sign in to comment.