@@ -25,8 +25,6 @@ set(GTEST_SRC_DIR ${CMAKE_SOURCE_DIR}/../../../../../hadoop-common-project/hadoo
2525
2626set (HADOOP_COMMON_SEC_PATH ${HADOOP_COMMON_PATH} /src/main/native/src/org/apache/hadoop/security)
2727
28- set (CMAKE_BUILD_WITH_INSTALL_RPATH TRUE )
29-
3028# determine if container-executor.conf.dir is an absolute
3129# path in case the OS we're compiling on doesn't have
3230# a hook in get_executable. We'll use this define
@@ -159,18 +157,6 @@ add_executable(container-executor
159157 main/native/container-executor/impl/main.c
160158)
161159
162- # By embedding '$ORIGIN' into the RPATH of container-executor, dlopen will look in
163- # the directory containing container-executor. However, $ORIGIN is not supported by
164- # all operating systems.
165- if (${CMAKE_SYSTEM_NAME} MATCHES "Linux|SunOS" )
166- set (RPATH "\$ ORIGIN/" )
167- if (EXTRA_LIBHADOOP_RPATH)
168- set (RPATH "${RPATH} :${EXTRA_LIBHADOOP_RPATH} /" )
169- endif ()
170- message ("RPATH SET AS ${RPATH} ." )
171- set_target_properties (container-executor PROPERTIES INSTALL_RPATH "${RPATH} " )
172- endif ()
173-
174160target_link_libraries (container-executor
175161 container
176162 crypto
@@ -182,19 +168,6 @@ output_directory(container-executor target/usr/local/bin)
182168add_executable (test -container-executor
183169 main/native/container-executor/test /test -container-executor.c
184170)
185-
186- # By embedding '$ORIGIN' into the RPATH of test-container-executor, dlopen will look in
187- # the directory containing test-container-executor. However, $ORIGIN is not supported by
188- # all operating systems.
189- if (${CMAKE_SYSTEM_NAME} MATCHES "Linux|SunOS" )
190- set (RPATH "\$ ORIGIN/" )
191- if (EXTRA_LIBHADOOP_RPATH)
192- set (RPATH "${RPATH} :${EXTRA_LIBHADOOP_RPATH} /" )
193- endif ()
194- message ("RPATH SET AS ${RPATH} ." )
195- set_target_properties (test -container-executor PROPERTIES INSTALL_RPATH "${RPATH} " )
196- endif ()
197-
198171target_link_libraries (test -container-executor
199172 container
200173 ${EXTRA_LIBS}
0 commit comments