Skip to content

Commit

Permalink
rebar.config.script: do not hardcode gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Jul 20, 2014
1 parent 113e16a commit 36e834f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rebar.config.script
Expand Up @@ -25,9 +25,9 @@ int main(int argc, char *argv[])
(void)pcap_create(NULL, errbuf);
return 0;
}",
file:write_file("test/test_pcap_create.c", Check),
Retval = os:cmd("gcc -o /dev/null test/test_pcap_create.c -lpcap > /dev/null 2>&1; printf \"%d\" $?"),
file:delete("test/test_pcap_create.c"),
ok = file:write_file("test_pcap_create.c", Check),
Retval = os:cmd("cc -o /dev/null test_pcap_create.c -lpcap > /dev/null 2>&1; printf \"%d\" $?"),
file:delete("test_pcap_create.c"),
case Retval of
"0" ->
Env = case os:getenv("EPCAP_CFLAGS") of
Expand Down

0 comments on commit 36e834f

Please sign in to comment.