But when I am trying the second command It is showing the following errors.
ld: warning: option -o appears more than once, first setting taken
ld: fatal: file libmystuff.so.1: open failed: No such file or directory
ld: fatal: File processing errors. No output written to libmystuff.so.1.0.1
collect2: ld returned 1 exit status