hpux-itanium 64 bit problem for libC

i am trying to build on hpux-itanium 64 bit platform. my application needs to link to 64 bit version of the library libCsup.so

This library is present in /usr/lib/hpux64/libCsup.so

I am specifying the location of this library as linker flags

LDFLAGS := -Wl,-N -Wl,+s -Wl,+b,/usr/lib/hpux64:. -Wl,-Brestricted -mt -lCsup -l

But even after the above the linker complians and the library is not found and i get the error as follows:

ld: Mismatched ABI for -lCsup, found /usr/lib/hpux32/libCsup.so
Fatal error.

Any help?

---------- Post updated at 07:07 AM ---------- Previous update was at 05:08 AM ----------

---------- Post updated at 07:08 AM ---------- Previous update was at 07:07 AM ----------

Solved

Had to pass the path using -L"/usr/lib/hpux64" -lCsup