diff options
author | Chris Nehren <apeiron@pobox.com> | 2014-03-10 19:44:05 -0400 |
---|---|---|
committer | Chris Nehren <apeiron@pobox.com> | 2014-03-10 19:44:05 -0400 |
commit | b569ff239d169d2aff49d72fe58661d41b714d5c (patch) | |
tree | a0a44c73befb4c79a0ffd158cc4f16e8b60138a5 | |
parent | b36342387ca8e629b469d2a7f5c22a0083f7a5fc (diff) | |
download | openvpn-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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |