Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcc 4.7.2 libbcrypt error #1

Open
kpeo opened this issue Jan 10, 2013 · 0 comments
Open

gcc 4.7.2 libbcrypt error #1

kpeo opened this issue Jan 10, 2013 · 0 comments

Comments

@kpeo
Copy link

kpeo commented Jan 10, 2013

$ gcc --version
gcc (Debian 4.7.2-4) 4.7.2

$ make library
gcc -c -Wall -O2 -fomit-frame-pointer -funroll-loops crypt_blowfish.c
gcc -c x86.S
gcc -c -shared -W1,-soname,libbcrypt.so.1 -o libbcrypt.so.1.1 crypt_blowfish.o x86.o
gcc: error: unrecognized command line option ‘-W1,-soname,libbcrypt.so.1’

I change Makefile:
CFLAGS = -Wall -O2 -fomit-frame-pointer -funroll-loops
to
CFLAGS = -Wall -fPIC -O2 -fomit-frame-pointer -funroll-loops
+
$(CC) -shared -W1,-soname,libbcrypt.so.1 -o $@ $(BLOWFISH_OBJS)
to
$(CC) -shared -Wl,-soname,libbcrypt.so.1 -o $@ $(BLOWFISH_OBJS)

and library compiles successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant