• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/liblinear/0002-build-static-lib.patch
Romain NaourRomain Naour committed 0f3a8f561d414 Dec 2014
Raw file
Source viewDiff to previous
 
1
Makefile: add a rule to build a static library
2
​
3
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
4
diff -durN liblinear-1.96.orig/Makefile liblinear-1.96/Makefile
5
--- liblinear-1.96.orig/Makefile    2014-11-15 07:50:23.000000000 +0100
6
+++ liblinear-1.96/Makefile 2014-12-14 00:23:00.135893956 +0100
7
@@ -16,6 +16,11 @@
8
    fi; \
9
    $(CXX) $${SHARED_LIB_FLAG} linear.o tron.o blas/blas.a -o liblinear.so.$(SHVER)
10
 
11
+# Keeping blas/blas.a as a pre-requisite, to ensure all .o files are built
12
+static-lib: linear.o tron.o blas/blas.a
13
+   $(AR) rcv liblinear.a linear.o tron.o blas/*.o
14
+   $(RANLIB) liblinear.a
15
+
16
 train: tron.o linear.o train.c blas/blas.a
17
    $(CXX) $(CFLAGS) -o train train.c tron.o linear.o $(LIBS)
18
 
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.