diff options
| author | Grissiom <[email protected]> | 2013-01-24 12:52:42 +0800 |
|---|---|---|
| committer | Grissiom <[email protected]> | 2013-01-24 12:52:42 +0800 |
| commit | 94a727a4fe7716654e7773b359e73654676b513b (patch) | |
| tree | fb8c5be9543c29fae695ac759d678650014f439c /bsp/simulator/SConstruct | |
| parent | ba245ae88046d0bd5ad421fe545c83986a69421b (diff) | |
link with libm.so
This fix the compiling error:
/usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../x86_64-slackware-linux/bin/ld: build/components/rtgui/common/dc.o: undefined reference to symbol 'sin@@GLIBC_2.2.5'
/usr/lib64/gcc/x86_64-slackware-linux/4.7.2/../../../../x86_64-slackware-linux/bin/ld: note: 'sin@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
Diffstat (limited to 'bsp/simulator/SConstruct')
| -rwxr-xr-x | bsp/simulator/SConstruct | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bsp/simulator/SConstruct b/bsp/simulator/SConstruct index 4dd5342cc6..12dbd7a025 100755 --- a/bsp/simulator/SConstruct +++ b/bsp/simulator/SConstruct @@ -55,6 +55,7 @@ else: TARGET = 'rtthread' env.Append(CCFLAGS=rtconfig.CFLAGS) env.Append(LINKFLAGS=rtconfig.LFLAGS) + env.Append(LIBS=['m']) # prepare building environment |
