user3287817
user3287817

Reputation: 1

Compiling Netcat with DFLAGS

I've been trying to compile netcat so that I can use the -e option but I am not sure as to how or where to place the custom flags.

So far I've done:

./configure
Make

and then I edit the Makefile with:

DFLAGS = -DGAPING_SECURITY_HOLE -DTELNET

and then do make install.

Is that the correct way to do this?

Upvotes: -1

Views: 535

Answers (1)

abligh
abligh

Reputation: 25169

You don't really say what you are trying to do, but normally you want CFLAGS not DFLAGS, and you want something like ./configure 'CFLAGS=blah', then make. You may have to play around with quoting depending on your shell. You may also find there is an option to configure to do this for you, normally starting with --with.

Upvotes: 1

Related Questions