Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve makefile #488

Merged
merged 6 commits into from
Feb 25, 2024
Merged

Improve makefile #488

merged 6 commits into from
Feb 25, 2024

Conversation

cfc4n
Copy link
Member

@cfc4n cfc4n commented Feb 24, 2024

优化Makefile ,编译libpcap时,不影响系统环境。(仅编译libpcap.a,不会安装到/usr/local/lib/下)

Optimize Makefile, compile libpcap without affecting the system environment. (Only compile libpcap.a, will not be installed under /usr/local/lib/)

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
…all to the system

Change the compiler of the libpcap project to gcc from clang

(In the future, cross-compilation will be supported)

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
@cfc4n cfc4n added the enhancement New feature or request label Feb 24, 2024
Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
Use absolute paths in CFLAGS and LDFLAGS.

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
@cfc4n cfc4n force-pushed the improve-makefile branch 17 times, most recently from 3d389fc to f98d8c0 Compare February 25, 2024 02:47
include file can't found when used CGO.

Running [/home/runner/golangci-lint-1.56.2-linux-amd64/golangci-lint run --out-format=github-actions --disable-all -E errcheck] in [] ...
  Error: could not import github.com/jschwinger233/elibpcap (-: # github.com/jschwinger233/elibpcap
  Error: ../../../go/pkg/mod/github.com/jschwinger233/elibpcap@v0.0.0-20231010035657-e99300096f5e/compile.go:15:10: fatal error: 'pcap.h' file not found
  #include <pcap.h>
           ^~~~~~~~
  1 error generated.) (typecheck)

  Error: issues found
  Ran golangci-lint in 7752ms

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
Copy link
Member Author

@cfc4n cfc4n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed

@cfc4n cfc4n merged commit 2127596 into master Feb 25, 2024
6 checks passed
@cfc4n cfc4n deleted the improve-makefile branch February 25, 2024 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant