summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Nehren <apeiron@pobox.com>2014-03-10 19:44:05 -0400
committerChris Nehren <apeiron@pobox.com>2014-03-10 19:44:05 -0400
commitb569ff239d169d2aff49d72fe58661d41b714d5c (patch)
treea0a44c73befb4c79a0ffd158cc4f16e8b60138a5
parentb36342387ca8e629b469d2a7f5c22a0083f7a5fc (diff)
downloadopenvpn-duo-plugin-b569ff239d169d2aff49d72fe58661d41b714d5c.tar.gz
openvpn-duo-plugin-b569ff239d169d2aff49d72fe58661d41b714d5c.zip
Compilation is more portable by not calling gcc
The POSIX standard does not mandate that the compiler will be available as `gcc`. It does, however, guarantee that `cc` is available. This fixes compilation on FreeBSD 10, which does not ship gcc.
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fd03d33..24ebb6d 100644
--- a/Makefile
+++ b/Makefile
@@ -8,10 +8,10 @@ endif
all: duo_openvpn.so
duo_openvpn.o: duo_openvpn.c
- gcc $(CFLAGS) -fPIC -c duo_openvpn.c
+ cc $(CFLAGS) -fPIC -c duo_openvpn.c
duo_openvpn.so: duo_openvpn.o
- gcc -fPIC -shared -Wl,-soname,duo_openvpn.so -o duo_openvpn.so duo_openvpn.o -lc
+ cc -fPIC -shared -Wl,-soname,duo_openvpn.so -o duo_openvpn.so duo_openvpn.o -lc
install: duo_openvpn.so
mkdir -p /opt/duo