@@ -25,8 +25,6 @@ set(GTEST_SRC_DIR ${CMAKE_SOURCE_DIR}/../../../../../hadoop-common-project/hadoo
25
25
26
26
set (HADOOP_COMMON_SEC_PATH ${HADOOP_COMMON_PATH} /src/main/native/src/org/apache/hadoop/security)
27
27
28
- set (CMAKE_BUILD_WITH_INSTALL_RPATH TRUE )
29
-
30
28
# determine if container-executor.conf.dir is an absolute
31
29
# path in case the OS we're compiling on doesn't have
32
30
# a hook in get_executable. We'll use this define
@@ -159,18 +157,6 @@ add_executable(container-executor
159
157
main/native/container-executor/impl/main.c
160
158
)
161
159
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
-
174
160
target_link_libraries (container-executor
175
161
container
176
162
crypto
@@ -182,19 +168,6 @@ output_directory(container-executor target/usr/local/bin)
182
168
add_executable (test -container-executor
183
169
main/native/container-executor/test /test -container-executor.c
184
170
)
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
-
198
171
target_link_libraries (test -container-executor
199
172
container
200
173
${EXTRA_LIBS}
0 commit comments