소스 검색

gcc-plugin: honor `--tag' libtool flag.

gcc-plugin/src/Makefile.am (AM_LDFLAGS): move `--tag=...' to...
(AM_LIBTOOLFLAGS): ...here so that it is honored by libtool. This
should fix linking issues starting with GCC 4.7.
Ludovic Stordeur 12 년 전
부모
커밋
aeac891b80
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      gcc-plugin/src/Makefile.am

+ 2 - 1
gcc-plugin/src/Makefile.am

@@ -28,10 +28,11 @@ AM_CPPFLAGS =						\
   -I$(GCC_PLUGIN_INCLUDE_DIR) -Wall -DYYERROR_VERBOSE=1 \
   $(STARPU_CUDA_CPPFLAGS) $(STARPU_OPENCL_CPPFLAGS)
 
-AM_LDFLAGS = -module --tag="$(GCC_FOR_PLUGIN_LIBTOOL_TAG)"
+AM_LDFLAGS = -module
 
 # Use either `gcc' or `g++', whichever is appropriate to build
 # plug-ins for this version of GCC.
+AM_LIBTOOLFLAGS = --tag="$(GCC_FOR_PLUGIN_LIBTOOL_TAG)"
 CC = $(GCC_FOR_PLUGIN)
 
 showcheck: