Help with Linux linking error

Hi,

Currently I am migrating codes from unix to Linux. When doing linking(ld) getting the below error.
Error is :ld: invalid BFD target `--shared'

Providing the script of the ld:

ld -b -G -o lib/libatk.so ./src/atk_db.o ./src/atk_gcl.o ./src/atk_options.o ./src/atk_exception.o ./src/atk_sqlexception.o ./src/atk_timeout.o ./src/atk_signal.o ./src/atk_semaphore.o -L../../../libcommon/lib -L../../../lib -L/logiciel/oracle/client_11203/lib -L../../../lib -L../../../../common/lib/liboratk/lib/ -L../../../../common/lib/liblog/lib/ -lutil -loratk -llog -lclntsh

all the objects files are complied successfully and available in the correct path.

The -b and -G options probably meant something completely different wherever this code came from, so I would look up what they meant on your old system. If they're not anything crucial, you can probably just delete them.

On GNU Linux, ld's -b parameter should be followed with a binary executable format, such as elf64-x86-64 , and -G is an optimization option which is supposed to be followed by a size related to MIPS register mapping.