emilybache/Refactoring-Katas — pull request #2 by balp (2012-01-20 07:08:02+00:00)
Title: -lphread changed into -phread for linking the cpp code

pthread have some special stuff, i got lads of complie errors with the -lphread flag, might be a linux/unix version issue.

gtest_main.a(gtest-all.o): In function `~ThreadLocal':
/home/balp/localsrc/Refactoring-Katas/GildedRose/cpp/gtest/include/gtest/internal/gtest-port.h:1336: undefined reference to `pthread_getspecific'
/home/balp/localsrc/Refactoring-Katas/GildedRose/cpp/gtest/include/gtest/internal/gtest-port.h:1340: undefined reference to `pthread_key_delete'
/home/balp/localsrc/Refactoring-Katas/GildedRose/cpp/gtest/include/gtest/internal/gtest-port.h:1336: undefined reference to `pthread_getspecific'
/home/balp/localsrc/Refactoring-Katas/GildedRose/cpp/gtest/include/gtest/internal/gtest-port.h:1340: undefined reference to `pthread_key_delete'
gtest_main.a(gtest-all.o): In function `testing::internal::ThreadLocal > >::GetOrCreateValue() const':
/home/balp/localsrc/Refactoring-Katas/GildedRose/cpp/gtest/include/gtest/internal/gtest-port.h:1372: undefined reference to `pthread_getspecific'
/home/balp/localsrc/Refactoring-Katas/GildedRose/cpp/gtest/include/gtest/internal/gtest-port.h:1379: undefined reference to `pthread_setspecific'
gtest_main.a(gtest-all.o): In function `testing::internal::ThreadLocal::CreateKey()':
/home/balp/localsrc/Refactoring-Katas/GildedRose/cpp/gtest/include/gtest/internal/gtest-port.h:1365: undefined reference to `pthread_key_create'
gtest_main.a(gtest-all.o): In function `testing::internal::ThreadLocal > >::CreateKey()':
/home/balp/localsrc/Refactoring-Katas/GildedRose/cpp/gtest/include/gtest/internal/gtest-port.h:1365: undefined reference to `pthread_key_create'
gtest_main.a(gtest-all.o): In function `testing::internal::ThreadLocal::GetOrCreateValue() const':
/home/balp/localsrc/Refactoring-Katas/GildedRose/cpp/gtest/include/gtest/internal/gtest-port.h:1372: undefined reference to `pthread_getspecific'
/home/balp/localsrc/Refactoring-Katas/GildedRose/cpp/gtest/include/gtest/internal/gtest-port.h:1379: undefined reference to `pthread_setspecific'
collect2: ld returnerade avslutningsstatus 1
make: *** [GildedRose] Fel 1