Operating System - HP-UX
1753524 Members
4777 Online
108795 Solutions
New Discussion юеВ

Re: LDFLAGS -Wl,-hsymbolname,+allowdups is not working in the case of HP-UX 11i v3

 
prasannakumar1989
Occasional Contributor

LDFLAGS -Wl,-hsymbolname,+allowdups is not working in the case of HP-UX 11i v3

I am using hp-ux 11.31 ia 64

Here is the snapshot from my makefile which has the LDFLAGS options as

# Flags for compilers/linkers

#
# 32-bit build with HP's compiler.
#
# Warning 501 = Empty source file (e.g. #ifdeffed).
#
CFLAGS=-c -DHPUX11 -DUNIX -DPERL5 +Z \
+W 501 \
$(USER_CFLAGS)
LDFLAGS=-Wl,-hAI_SHA224,+allowdups
DEFAULTLIBS=-ldld -lm -lnsl

It shows
ld: Unrecognized argument: -Wl,-hAI_SHA224,+allowdups

Fatal error

Any help in any form is appreciated
3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: LDFLAGS -Wl,-hsymbolname,+allowdups is not working in the case of HP-UX 11i v3

>ld: Unrecognized argument: -Wl,-hAI_SHA224,+allowdups

This probably means you have defined LD as ld instead of cc.
If you really want to invoke ld directly:
-hAI_SHA224 +allowdups
prasannakumar1989
Occasional Contributor

Re: LDFLAGS -Wl,-hsymbolname,+allowdups is not working in the case of HP-UX 11i v3

Thanks for your reply,

I had tried the following

LD=cc

LDFLAGS=-hAI_SHA224 +allowdups

the error received is
(Bundled) cc: warning 901: unknown option: `-hAI_SHA224': use +help for online d
ocumentation.

(Bundled) cc: warning 901: unknown option: `+allowdups': use +help for online do
cumentation.

And here i am attaching the entire makefile
Dennis Handly
Acclaimed Contributor

Re: LDFLAGS -Wl,-hsymbolname,+allowdups is not working in the case of HP-UX 11i v3

>LD=cc

If you use this, stick with your original LDFLAGS.