cristian
cristian

Reputation: 526

makefile: cannot build project

I have the following makefile:

CC = /usr/bin

CPPFLAGS = -x c++
...

When I build my project with this makefile I get:

make: execvp: /usr/bin/: Permission denied

There is a way to specify root permission in the makefile ? Or other solution ?

Upvotes: 1

Views: 221

Answers (2)

Vorsprung
Vorsprung

Reputation: 34297

Either comment out the CC line or set it to be the full path to the C compiler.

The shell command which cc will give you a path to the C compiler

Upvotes: 1

choroba
choroba

Reputation: 241768

Are you trying to run /usr/bin? CC is usually set to a C compiler, not a directory.

Upvotes: 2

Related Questions