452:ce359a2b51fe | 453:4586d534f9b5 |
---|---|
281 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs openssl`" | 281 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs openssl`" |
282 echo yes | 282 echo yes |
283 return 0 | 283 return 0 |
284 done | 284 done |
285 | 285 |
286 # dependency openssl | |
287 while true | |
288 do | |
289 LDFLAGS="$LDFLAGS -lssl -lcrypto" | |
290 echo yes | |
291 return 0 | |
292 done | |
293 | |
294 echo no | 286 echo no |
295 return 1 | 287 return 1 |
296 } | 288 } |
297 dependency_libxml2() | 289 dependency_libxml2() |
298 { | 290 { |
307 if [ $? -ne 0 ] ; then | 299 if [ $? -ne 0 ] ; then |
308 break | 300 break |
309 fi | 301 fi |
310 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags libxml-2.0`" | 302 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags libxml-2.0`" |
311 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs libxml-2.0`" | 303 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs libxml-2.0`" |
304 echo yes | |
305 return 0 | |
306 done | |
307 | |
308 # dependency libxml2 | |
309 while true | |
310 do | |
311 xml2-config --cflags > /dev/null | |
312 if [ $? -eq 0 ]; then | |
313 CFLAGS="$CFLAGS `xml2-config --cflags`" | |
314 else | |
315 break | |
316 fi | |
312 echo yes | 317 echo yes |
313 return 0 | 318 return 0 |
314 done | 319 done |
315 | 320 |
316 echo no | 321 echo no |
339 # platform dependend vars | 344 # platform dependend vars |
340 OBJ_EXT = .o | 345 OBJ_EXT = .o |
341 LIB_EXT = .so | 346 LIB_EXT = .so |
342 APP_EXT = | 347 APP_EXT = |
343 | 348 |
349 # ld flags | |
350 UCX_SO_NAME = | |
351 RPATH_WS_LIB_FLAG = -Wl,-rpath,'$$ORIGIN/../lib' | |
352 | |
344 __EOF__ | 353 __EOF__ |
345 | 354 |
346 break | 355 break |
347 done | 356 done |
348 | 357 |
368 # platform dependend vars | 377 # platform dependend vars |
369 OBJ_EXT = .o | 378 OBJ_EXT = .o |
370 LIB_EXT = .so | 379 LIB_EXT = .so |
371 APP_EXT = | 380 APP_EXT = |
372 | 381 |
382 # ld flags | |
383 UCX_SO_NAME = | |
384 RPATH_WS_LIB_FLAG = -Wl,-rpath,'$$ORIGIN/../lib' | |
385 | |
373 __EOF__ | 386 __EOF__ |
374 | 387 |
375 break | 388 break |
376 done | 389 done |
377 | 390 |
393 | 406 |
394 # platform dependend vars | 407 # platform dependend vars |
395 OBJ_EXT = .o | 408 OBJ_EXT = .o |
396 LIB_EXT = .dylib | 409 LIB_EXT = .dylib |
397 APP_EXT = | 410 APP_EXT = |
411 | |
412 # ld flags | |
413 UCX_SO_NAME = -install_name @rpath/libucx.dylib | |
414 RPATH_WS_LIB_FLAG = -rpath @loader_path/../lib | |
398 | 415 |
399 __EOF__ | 416 __EOF__ |
400 | 417 |
401 break | 418 break |
402 done | 419 done |