VirtualBox

source: vbox/trunk/src/VBox/Main/cbinding/makefile.tstLinuxC@ 16454

最後變更 在這個檔案從16454是 16454,由 vboxsync 提交於 16 年 前

Use -Xlinker -rpath -Xlinker $(PATH_BIN)
instead of -Wl,-rpath $(PATH_BIN).
The latter works only accidentally because $(PATH_BIN)
ends up right after -rpath for collect2. Now it works by design.
Could have used -Wl,-rpath,$(PATH_BIN) but there's no
guarantee that PATH_BIN has no commas where gcc would split args.

  • 屬性 svn:eol-style 設為 native
檔案大小: 821 位元組
 
1# $Id: Makefile 42209 2009-01-29 12:22:10Z jens $
2
3PATH_XPCOM = ../..
4PATH_BIN = /opt/VirtualBox
5
6INCS_XPCOM = -I$(PATH_XPCOM)/include \
7 -I$(PATH_XPCOM)/include/nsprpub \
8 -I$(PATH_XPCOM)/include/string \
9 -I$(PATH_XPCOM)/include/xpcom \
10 -I$(PATH_XPCOM)/include/ipcd \
11 -I$(PATH_VBOX_SVN)/include
12
13CC = gcc
14CFLAGS = -g -ansi -pedantic -Wall
15
16.PHONY: all
17all: tstLinuxC run
18
19.PHONY: clean
20clean:
21 rm -f tstLinuxC.o tstLinuxC run
22
23tstLinuxC: tstLinuxC.o
24 $(CC) -o $@ $^ -Xlinker -rpath -Xlinker $(PATH_BIN) $(PATH_BIN)/VBoxXPCOMC.so
25
26tstLinuxC.o: tstLinuxC.c tstLinuxC.h
27 $(CC) $(CFLAGS) -DRT_OS_LINUX -DMOZ_UNICODE $(INCS_XPCOM) -o $@ -c $<
28
29run:
30 echo "env VBOX_XPCOM_HOME=$(PATH_BIN) LD_LIBRARY_PATH=$(PATH_BIN) ./tstLinuxC" > $@
31 chmod a+x $@
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette