خيار AIX 5.3 (ld-xlc) المكافئ Linux (ld-gcc) -rpath
سؤال
مترجمي: xlc الإصدار 10.1 وسط:AIX5.3 الواصل:دينار
عندما أعمل على نظام Linux، مع مجلس التعاون الخليجي (4.4.1) أستخدم الخيار التالي
-Wl,-rpath
(-Wl لخيارات الرابط) يضيف دليلاً إلى مسار البحث في مكتبة وقت التشغيل.
ما هو المعادل لمترجم xlc؟
أو ما يعادلها -rpath للرابط.
شكرًا لك.
المحلول
إجابتي الأولى كانت: خيار رابط AIX لذلك هو -blibpath
.(إذا كان هناك أي مساعدة، بالنسبة لمترجم Sun، فهو -R
.فقط في حالة!)
لقد قمت الآن بتحريره للرد على تعليق OP: أنت على حق.في الواقع، قراءة دليل رابط AIX (man ld
) يبدو -L
هو الخيار الصحيح بالفعل!
-LDirectory
Adds Directory to the list of search directories used for finding
libraries designated by the -l (lowercase letter L) flag. The list
of directories, including the standard library directories, is
also recorded in the output object file loader section for use by
the system loader unless you use the -blibpath, -bnolibpath, or
-bsvr4 option. You can repeat this flag.
لا تنتمي إلى StackOverflow