GCC를 써보고 싶어서... 그냥.. 그래서
#1 바이너리로 받기
파일 위치
http://www.synology.com/support/gpl.php?lang=enu
http://sourceforge.net/projects/dsgpl/
위로 들어가서
Files -> DSM 4.0 Tool Chains -> Intel x86 Linux 2.6.32 (Cedarview) 순으로 찾아서 아래 링크 중...
gcc443_glibc290_x64_cedarview-GPL.tgz 다운로드
http://sourceforge.net/projects/dsgpl/files/DSM%204.0%20Tool%20Chains/Intel%20x86%20Linux%202.6.32%20%28Cedarview%29/
#2. Bootstrap 이게 더 쉽겠다;;
http://forum.synology.com/wiki/index.php/Overview_on_modifying_the_Synology_Server,_bootstrap,_ipkg_etc#How_to_install_ipkg 참고
차례대로 실행
Code Type : Bash
wget http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/syno-i686-bootstrap_1.2-7_i686.xsh
chmod 755 syno-i686-bootstrap_1.2-7_i686.xsh
./syno-i686-bootstrap_1.2-7_i686.xsh
ipkg update
ipkg upgrade
ipkg install optware-devel
ipkg install gcc
끝.
Code Type : Bash
OhyungServer> ipkg install gcc
Installing gcc (4.2.1-5) to root...
...........
Configuring gcc
Configuring libc-dev
Configuring libnsl
Successfully terminated.
OhyungServer> gcc 1.c
OhyungServer> ./a.out
Hello World
Ohyung
OhyungServer>