libpthread/nptl_db: Append options to LDFLAGS based on if LD is set to gcc driver or ld itself
libpthread/nptl_db: Append options to LDFLAGS based on if LD is set to gcc driver or ld itself

Signed-off-by: Khem Raj <729d64b6f67515e258459a5f6d20ec88b2caf8df@gmail.com>

groundwater/uClibc,skristiansson/uClibc-or1k,m-labs/uclibc-lm32,ndmsystems/uClibc,waweber/uclibc-clang,foss-for-synopsys-dwc-arc-processors/uClibc,mephi42/uClibc,czankel/xtensa-uclibc,ysat0/uClibc,groundwater/uClibc,atgreen/uClibc-moxie,wbx-github/uclibc-ng,hjl-tools/uClibc,hjl-tools/uClibc,atgreen/uClibc-moxie,czankel/xtensa-uclibc,wbx-github/uclibc-ng,waweber/uclibc-clang,kraj/uClibc,ysat0/uClibc,atgreen/uClibc-moxie,czankel/xtensa-uclibc,hjl-tools/uClibc,ndmsystems/uClibc,hjl-tools/uClibc,ddcc/klee-uclibc-0.9.33.2,m-labs/uclibc-lm32,waweber/uclibc-clang,kraj/uclibc-ng,brgl/uclibc-ng,mephi42/uClibc,foss-xtensa/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,skristiansson/uClibc-or1k,foss-xtensa/uClibc,ddcc/klee-uclibc-0.9.33.2,majek/uclibc-vx32,brgl/uclibc-ng,majek/uclibc-vx32,ndmsystems/uClibc,hwoarang/uClibc,ffainelli/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,hwoarang/uClibc,atgreen/uClibc-moxie,ffainelli/uClibc,hwoarang/uClibc,ndmsystems/uClibc,mephi42/uClibc,kraj/uclibc-ng,kraj/uClibc,majek/uclibc-vx32,hwoarang/uClibc,ddcc/klee-uclibc-0.9.33.2,foss-xtensa/uClibc,ddcc/klee-uclibc-0.9.33.2,majek/uclibc-vx32,kraj/uClibc,hjl-tools/uClibc,groundwater/uClibc,skristiansson/uClibc-or1k,mephi42/uClibc,ffainelli/uClibc,brgl/uclibc-ng,czankel/xtensa-uclibc,kraj/uClibc,foss-xtensa/uClibc,m-labs/uclibc-lm32,m-labs/uclibc-lm32,ffainelli/uClibc,groundwater/uClibc,kraj/uclibc-ng,skristiansson/uClibc-or1k,ysat0/uClibc,ffainelli/uClibc,brgl/uclibc-ng,wbx-github/uclibc-ng,foss-for-synopsys-dwc-arc-processors/uClibc,ysat0/uClibc,kraj/uclibc-ng,groundwater/uClibc,waweber/uclibc-clang,wbx-github/uclibc-ng