Skip to content
Snippets Groups Projects
Commit dc050e3a authored by Oliver Bock's avatar Oliver Bock
Browse files

Ensure static linking of libgcc and libstdc++ (the latter requires GCC 4.5)

parent 227182c4
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ ARCH ?= 32
TARGET = clfft_example.exe
CXXFLAGS += -O3 -Wall -g -I$(NVIDIA_SDK_INSTALL_PATH)/OpenCL/common/inc -I$(AMDAPPSDKROOT)/include -I../include -D_WIN32_WINDOWS=0x0410 -malign-double
LDFLAGS += $(PWD)/../lib/libclfft.a -lOpenCL -L../lib/amd/win$(ARCH)/2.6
LDFLAGS += -static-libgcc -static-libstdc++ $(PWD)/../lib/libclfft.a -lOpenCL -L../lib/amd/win$(ARCH)/2.6
$(TARGET): main.cpp Makefile $(PWD)/../lib/libclfft.a
$(CXX) $(CXXFLAGS) main.cpp $(LDFLAGS) -o $(TARGET)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment