ソースを参照

Enable LDFLAGS flag override

In case of the project cross-compilation, dependent libraries
(libcrypt) are located outside of the default library locations.
pull/124/head
Oleksii Bidnichenko 3年前
コミット
25eb50e9cb
10個のファイルの変更10行の追加9行の削除
  1. +1
    -1
      examples/Gertboard/Makefile
  2. +1
    -1
      examples/Makefile
  3. +1
    -1
      examples/PiFace/Makefile
  4. +1
    -1
      examples/PiGlow/Makefile
  5. +1
    -1
      examples/q2w/Makefile
  6. +1
    -1
      examples/scrollPhat/Makefile
  7. バイナリ
      gpio/.Makefile.swp
  8. +1
    -1
      gpio/Makefile
  9. +2
    -1
      wiringPi/Makefile
  10. +1
    -1
      wiringPiD/Makefile

+ 1
- 1
examples/Gertboard/Makefile ファイルの表示

@@ -15,7 +15,7 @@ CC ?= gcc
INCLUDE = -I/usr/local/include
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS)

LDFLAGS = -L/usr/local/lib
LDFLAGS ?= -L/usr/local/lib
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm

# Should not alter anything below this line


+ 1
- 1
examples/Makefile ファイルの表示

@@ -32,7 +32,7 @@ CC ?= gcc
INCLUDE = -I/usr/local/include
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS)

LDFLAGS = -L/usr/local/lib
LDFLAGS ?= -L/usr/local/lib
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm -lcrypt -lrt

# Should not alter anything below this line


+ 1
- 1
examples/PiFace/Makefile ファイルの表示

@@ -32,7 +32,7 @@ CC ?= gcc
INCLUDE = -I/usr/local/include
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS)

LDFLAGS = -L/usr/local/lib
LDFLAGS ?= -L/usr/local/lib
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm

# Should not alter anything below this line


+ 1
- 1
examples/PiGlow/Makefile ファイルの表示

@@ -32,7 +32,7 @@ CC ?= gcc
INCLUDE = -I/usr/local/include
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS)

LDFLAGS = -L/usr/local/lib
LDFLAGS ?= -L/usr/local/lib
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm

# Should not alter anything below this line


+ 1
- 1
examples/q2w/Makefile ファイルの表示

@@ -32,7 +32,7 @@ CC ?= gcc
INCLUDE = -I/usr/local/include
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS)

LDFLAGS = -L/usr/local/lib
LDFLAGS ?= -L/usr/local/lib
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm

###############################################################################


+ 1
- 1
examples/scrollPhat/Makefile ファイルの表示

@@ -32,7 +32,7 @@ CC ?= gcc
INCLUDE = -I/usr/local/include
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS)

LDFLAGS = -L/usr/local/lib
LDFLAGS ?= -L/usr/local/lib
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm

# Should not alter anything below this line


バイナリ
gpio/.Makefile.swp ファイルの表示


+ 1
- 1
gpio/Makefile ファイルの表示

@@ -36,7 +36,7 @@ CC ?= gcc
INCLUDE = -I$(DESTDIR)$(PREFIX)/include
CFLAGS = $(DEBUG) -Wall -Wextra $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS)

LDFLAGS = -L$(DESTDIR)$(PREFIX)/lib
LDFLAGS ?= -L$(DESTDIR)$(PREFIX)/lib
LIBS = -lwiringPi -lwiringPiDev -lpthread -lrt -lm -lcrypt

# May not need to alter anything below this line


+ 2
- 1
wiringPi/Makefile ファイルの表示

@@ -42,6 +42,7 @@ DEFS = -D_GNU_SOURCE
CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Winline $(INCLUDE) -pipe -fPIC $(EXTRA_CFLAGS)
#CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Wconversion -Winline $(INCLUDE) -pipe -fPIC

LDFLAGS ?= -L/usr/local/lib
LIBS = -lm -lpthread -lrt -lcrypt

###############################################################################
@@ -75,7 +76,7 @@ static:

$(DYNAMIC): $(OBJ)
$Q echo "[Link (Dynamic)]"
$Q $(CC) -shared -Wl,-soname,libwiringPi.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPi.so.$(VERSION) $(OBJ) $(LIBS)
$Q $(CC) -shared -Wl,-soname,libwiringPi.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPi.so.$(VERSION) $(OBJ) $(LDFLAGS) $(LIBS)

.c.o:
$Q echo [Compile] $<


+ 1
- 1
wiringPiD/Makefile ファイルの表示

@@ -35,7 +35,7 @@ CC ?= gcc
INCLUDE = -I$(DESTDIR)$(PREFIX)/include
CFLAGS = $(DEBUG) -Wall -Wextra $(INCLUDE) -Winline -pipe $(EXTRA_CFLAGS)

LDFLAGS = -L$(DESTDIR)$(PREFIX)/lib
LDFLAGS ?= -L$(DESTDIR)$(PREFIX)/lib
LIBS = -lwiringPi -lwiringPiDev -lpthread -lrt -lm -lcrypt

# May not need to alter anything below this line


読み込み中…
キャンセル
保存